Mercurial > hg > openttd
changeset 15312:9c5f42023621 draft
(svn r19953) -Fix [FS#3874]: Don't show an error message when trying to start/stop a crashed plane.
author | terkhen <terkhen@openttd.org> |
---|---|
date | Thu, 10 Jun 2010 16:32:39 +0000 |
parents | 07b36528c711 |
children | f843c786e506 |
files | src/vehicle_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/vehicle_cmd.cpp +++ b/src/vehicle_cmd.cpp @@ -92,7 +92,7 @@ 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;