From 5387d4d87c2f530c3b764cb1a85461ed79176488 Mon Sep 17 00:00:00 2001 From: terkhen Date: Thu, 10 Jun 2010 16:32:39 +0000 Subject: (svn r19953) -Fix [FS#3874]: Don't show an error message when trying to start/stop a crashed plane. --- src/vehicle_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2