diff options
author | terkhen <terkhen@openttd.org> | 2010-06-10 16:32:39 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2010-06-10 16:32:39 +0000 |
commit | 5387d4d87c2f530c3b764cb1a85461ed79176488 (patch) | |
tree | 565ff56cc5c3cfa3bb9f16681f770d95c58e9379 | |
parent | 3d909433acf8101b000159864cacbb80b5164bae (diff) | |
download | openttd-5387d4d87c2f530c3b764cb1a85461ed79176488.tar.xz |
(svn r19953) -Fix [FS#3874]: Don't show an error message when trying to start/stop a crashed plane.
-rw-r--r-- | src/vehicle_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_cmd.cpp b/src/vehicle_cmd.cpp index 19c0016e1..11efe9727 100644 --- a/src/vehicle_cmd.cpp +++ b/src/vehicle_cmd.cpp @@ -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; |