Skip to content
Permalink
Browse files

Fix: RemoveAirport function now returns with 'Aircraft in the way' er…

…ror message as it should be.
  • Loading branch information...
j-pet authored and LordAro committed Aug 9, 2019
1 parent 27d676e commit f0aea2d24631cd77036ed287a5457a5f03d789a1
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/station_cmd.cpp
@@ -2389,7 +2389,9 @@ static CommandCost RemoveAirport(TileIndex tile, DoCommandFlag flags)
const Aircraft *a;
FOR_ALL_AIRCRAFT(a) {
if (!a->IsNormalAircraft()) continue;
if (a->targetairport == st->index && a->state != FLYING) return CMD_ERROR;
if (a->targetairport == st->index && a->state != FLYING) {
return_cmd_error(STR_ERROR_AIRCRAFT_IN_THE_WAY);
}
}

if (flags & DC_EXEC) {

0 comments on commit f0aea2d

Please sign in to comment.
You can’t perform that action at this time.