(svn r19953) -Fix [FS#3874]: Don't show an error message when trying to start/stop a crashed plane.

This commit is contained in:
terkhen 2010-06-10 16:32:39 +00:00
parent 3d909433ac
commit 5387d4d87c
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ CommandCost CmdStartStopVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1,
case VEH_AIRCRAFT: {
Aircraft *a = Aircraft::From(v);
/* cannot stop airplane when in flight, or when taking off / landing */
if (a->state >= STARTTAKEOFF && a->state < TERM7) return_cmd_error(STR_ERROR_AIRCRAFT_IS_IN_FLIGHT);
if (!(v->vehstatus & VS_CRASHED) && a->state >= STARTTAKEOFF && a->state < TERM7) return_cmd_error(STR_ERROR_AIRCRAFT_IS_IN_FLIGHT);
} break;
default: return CMD_ERROR;