mirror of https://github.com/OpenTTD/OpenTTD
(svn r14178) -Fix [FS#2256]: Do not evaluate GetDestination() for go-to-nearest-depot-orders.
parent
361292bd23
commit
7ce75961b4
|
@ -1465,6 +1465,7 @@ void RemoveOrderFromAllVehicles(OrderType type, DestinationID destination)
|
||||||
/* Clear the order from the order-list */
|
/* Clear the order from the order-list */
|
||||||
invalidate = false;
|
invalidate = false;
|
||||||
FOR_VEHICLE_ORDERS(v, order) {
|
FOR_VEHICLE_ORDERS(v, order) {
|
||||||
|
if (order->IsType(OT_GOTO_DEPOT) && (order->GetDepotActionType() & ODATFB_NEAREST_DEPOT) != 0) continue;
|
||||||
if ((v->type == VEH_AIRCRAFT && order->IsType(OT_GOTO_DEPOT) ? OT_GOTO_STATION : order->GetType()) == type &&
|
if ((v->type == VEH_AIRCRAFT && order->IsType(OT_GOTO_DEPOT) ? OT_GOTO_STATION : order->GetType()) == type &&
|
||||||
order->GetDestination() == destination) {
|
order->GetDestination() == destination) {
|
||||||
order->MakeDummy();
|
order->MakeDummy();
|
||||||
|
|
Loading…
Reference in New Issue