Set adjacent crossings setting to false when loading pre v300 trunk savegames

This commit is contained in:
Jonathan G Rennison
2022-11-02 22:58:07 +00:00
parent 652d6c8181
commit 49bda05fb5

View File

@@ -3814,6 +3814,8 @@ bool AfterLoadGame()
if (!IsSavegameVersionBefore(SLV_MULTITRACK_LEVEL_CROSSINGS)) { if (!IsSavegameVersionBefore(SLV_MULTITRACK_LEVEL_CROSSINGS)) {
_settings_game.vehicle.adjacent_crossings = true; _settings_game.vehicle.adjacent_crossings = true;
} else if (SlXvIsFeatureMissing(XSLFI_ADJACENT_CROSSINGS)) {
_settings_game.vehicle.adjacent_crossings = false;
} }
/* Compute station catchment areas. This is needed here in case UpdateStationAcceptance is called below. */ /* Compute station catchment areas. This is needed here in case UpdateStationAcceptance is called below. */