forked from mirror/OpenTTD
Fix 3947453
: GetNextDecisionNode ignored go to nearest depot when combined with stop at depot
This commit is contained in:
@@ -392,7 +392,7 @@ const Order *OrderList::GetNextDecisionNode(const Order *next, uint hops) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (next->IsType(OT_GOTO_DEPOT)) {
|
if (next->IsType(OT_GOTO_DEPOT)) {
|
||||||
if (next->GetDepotActionType() == ODATFB_HALT) return nullptr;
|
if ((next->GetDepotActionType() & ODATFB_HALT) != 0) return nullptr;
|
||||||
if (next->IsRefit()) return next;
|
if (next->IsRefit()) return next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user