forked from mirror/OpenTTD
Feature: Order flag to unbunch vehicles at depot (#11945)
This commit is contained in:
@@ -1765,6 +1765,12 @@ bool AfterLoadGame()
|
||||
v->current_order.SetLoadType(OLFB_NO_LOAD);
|
||||
}
|
||||
}
|
||||
} else if (IsSavegameVersionBefore(SLV_DEPOT_UNBUNCHING)) {
|
||||
/* OrderDepotActionFlags were moved, instead of starting at bit 4 they now start at bit 3. */
|
||||
for (Order *order : Order::Iterate()) {
|
||||
if (!order->IsType(OT_GOTO_DEPOT)) continue;
|
||||
order->SetDepotActionType((OrderDepotActionFlags)(order->GetDepotActionType() >> 1));
|
||||
}
|
||||
}
|
||||
|
||||
/* The water class was moved/unified. */
|
||||
|
Reference in New Issue
Block a user