mirror of https://github.com/OpenTTD/OpenTTD
(svn r1387) Fix: Airplanes now also crash when only one invalid order is in the schedule
parent
67161506ad
commit
6735135773
|
@ -1041,6 +1041,9 @@ static void ProcessAircraftOrder(Vehicle *v)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( order.type == OT_DUMMY && !CheckForValidOrders(v))
|
||||||
|
CrashAirplane(v);
|
||||||
|
|
||||||
if (order.type == v->current_order.type &&
|
if (order.type == v->current_order.type &&
|
||||||
order.flags == v->current_order.flags &&
|
order.flags == v->current_order.flags &&
|
||||||
order.station == v->current_order.station)
|
order.station == v->current_order.station)
|
||||||
|
@ -1054,9 +1057,6 @@ static void ProcessAircraftOrder(Vehicle *v)
|
||||||
v->u.air.targetairport = order.station;
|
v->u.air.targetairport = order.station;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( order.type == OT_DUMMY && !CheckForValidOrders(v))
|
|
||||||
CrashAirplane(v);
|
|
||||||
|
|
||||||
InvalidateVehicleOrderWidget(v);
|
InvalidateVehicleOrderWidget(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue