Revert "Avoid unnecessary calls to SettingsDisableElrail in AfterLoadGame"
This reverts commit 5008a09fe9
.
This seems to cause regressions with some older savegames/GRF configurations.
This commit is contained in:
@@ -1678,11 +1678,8 @@ bool AfterLoadGame()
|
||||
/* from version 38 we have optional elrails, since we cannot know the
|
||||
* preference of a user, let elrails enabled; it can be disabled manually */
|
||||
if (IsSavegameVersionBefore(SLV_38)) _settings_game.vehicle.disable_elrails = false;
|
||||
if (IsSavegameVersionBefore(SLV_38) || _settings_game.vehicle.disable_elrails) {
|
||||
SettingsDisableElrail(_settings_game.vehicle.disable_elrails);
|
||||
} else {
|
||||
ReinitGuiAfterToggleElrail(_settings_game.vehicle.disable_elrails);
|
||||
}
|
||||
/* do the same as when elrails were enabled/disabled manually just now */
|
||||
SettingsDisableElrail(_settings_game.vehicle.disable_elrails);
|
||||
InitializeRailGUI();
|
||||
|
||||
/* From version 53, the map array was changed for house tiles to allow
|
||||
|
Reference in New Issue
Block a user