Handle service at depot orders in cond order loops
This commit is contained in:
@@ -2940,6 +2940,13 @@ VehicleOrderID AdvanceOrderIndexDeferred(const Vehicle *v, VehicleOrderID index)
|
|||||||
assert(order != nullptr);
|
assert(order != nullptr);
|
||||||
|
|
||||||
switch (order->GetType()) {
|
switch (order->GetType()) {
|
||||||
|
case OT_GOTO_DEPOT:
|
||||||
|
if ((order->GetDepotOrderType() & ODTFB_SERVICE) && !v->NeedsServicing()) {
|
||||||
|
break;
|
||||||
|
} else {
|
||||||
|
return index;
|
||||||
|
}
|
||||||
|
|
||||||
case OT_RELEASE_SLOT:
|
case OT_RELEASE_SLOT:
|
||||||
if (TraceRestrictSlot::IsValidID(order->GetDestination())) {
|
if (TraceRestrictSlot::IsValidID(order->GetDestination())) {
|
||||||
include(_pco_deferred_slot_releases, order->GetDestination());
|
include(_pco_deferred_slot_releases, order->GetDestination());
|
||||||
|
Reference in New Issue
Block a user