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:
Jonathan G Rennison
2019-11-13 20:21:18 +00:00
parent cbdd9f84d8
commit bbd487a2a7

View File

@@ -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