mirror of https://github.com/OpenTTD/OpenTTD.git
Fix 3947453: GetNextDecisionNode ignored go to nearest depot when combined with stop at depot
This commit is contained in:
parent
ab52f7eecf
commit
0c432bdc4d
|
@ -392,7 +392,7 @@ const Order *OrderList::GetNextDecisionNode(const Order *next, uint hops) const
|
|||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue