diff options
author | dominik <dominik@openttd.org> | 2005-01-05 13:48:38 +0000 |
---|---|---|
committer | dominik <dominik@openttd.org> | 2005-01-05 13:48:38 +0000 |
commit | 673513577329488ca5d8e2ee563273db52b3b917 (patch) | |
tree | 305eba387c81d96168fe6ff64d2b5724590f568a | |
parent | 67161506ad98a7636d3c9f141b5595481d079e93 (diff) | |
download | openttd-673513577329488ca5d8e2ee563273db52b3b917.tar.xz |
(svn r1387) Fix: Airplanes now also crash when only one invalid order is in the schedule
-rw-r--r-- | aircraft_cmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c index 7da3de8f1..23704b11f 100644 --- a/aircraft_cmd.c +++ b/aircraft_cmd.c @@ -1041,6 +1041,9 @@ static void ProcessAircraftOrder(Vehicle *v) 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 @@ static void ProcessAircraftOrder(Vehicle *v) v->u.air.targetairport = order.station; } - if ( order.type == OT_DUMMY && !CheckForValidOrders(v)) - CrashAirplane(v); - InvalidateVehicleOrderWidget(v); } |