summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2005-01-05 13:48:38 +0000
committerdominik <dominik@openttd.org>2005-01-05 13:48:38 +0000
commite5129d5b32565438273b3d8e71a5edb267ef1db2 (patch)
tree305eba387c81d96168fe6ff64d2b5724590f568a
parente4cf2ba1b304a0b424a50a6143243172b9c5264d (diff)
downloadopenttd-e5129d5b32565438273b3d8e71a5edb267ef1db2.tar.xz
(svn r1387) Fix: Airplanes now also crash when only one invalid order is in the schedule
-rw-r--r--aircraft_cmd.c6
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);
}