Merge tag '13.0-beta1' into jgrpp

This commit is contained in:
Jonathan G Rennison
2022-11-05 18:25:59 +00:00
14 changed files with 294 additions and 46 deletions

View File

@@ -3812,6 +3812,13 @@ bool AfterLoadGame()
}
}
/* Use current order time to approximate last loading time */
if (IsSavegameVersionBefore(SLV_LAST_LOADING_TICK) && SlXvIsFeatureMissing(XSLFI_LAST_LOADING_TICK)) {
for (Vehicle *v : Vehicle::Iterate()) {
v->last_loading_tick = std::max(_tick_counter, static_cast<uint64>(v->current_order_time)) - v->current_order_time;
}
}
if (!IsSavegameVersionBefore(SLV_MULTITRACK_LEVEL_CROSSINGS)) {
_settings_game.vehicle.adjacent_crossings = true;
} else if (SlXvIsFeatureMissing(XSLFI_ADJACENT_CROSSINGS)) {