Mercurial > hg > openttd
changeset 901:cb610cd5cbf0 draft
(svn r1387) Fix: Airplanes now also crash when only one invalid order is in the schedule
author | dominik <dominik@openttd.org> |
---|---|
date | Wed, 05 Jan 2005 13:48:38 +0000 |
parents | 767fb627c5c7 |
children | 772f9f1b09cb |
files | aircraft_cmd.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/aircraft_cmd.c +++ b/aircraft_cmd.c @@ -1041,6 +1041,9 @@ return; } + if ( order.type == OT_DUMMY && !CheckForValidOrders(v)) + CrashAirplane(v); + if (order.type == v->current_order.type && order.flags == v->current_order.flags && order.station == v->current_order.station) @@ -1054,9 +1057,6 @@ v->u.air.targetairport = order.station; } - if ( order.type == OT_DUMMY && !CheckForValidOrders(v)) - CrashAirplane(v); - InvalidateVehicleOrderWidget(v); }