mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r19953) -Fix [FS#3874]: Don't show an error message when trying to start/stop a crashed plane.
This commit is contained in:
parent
3d909433ac
commit
5387d4d87c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue