Fix 3947453: GetNextDecisionNode ignored go to nearest depot when combined with stop at depot

pull/678/head
SamuXarick 3 months ago committed by Patric Stout
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…
Cancel
Save