(svn r8422) -Fix

-Regression (r8314): Reevaluate the disabled elrail setting after loading because the railtype doesn't get saved anymore
This commit is contained in:
tron 2007-01-26 20:22:34 +00:00
parent 7b38614756
commit ccfddeca9c

View File

@ -1662,11 +1662,9 @@ bool AfterLoadGame(void)
/* from version 38 we have optional elrails, since we cannot know the /* from version 38 we have optional elrails, since we cannot know the
* preference of a user, let elrails enabled; it can be disabled manually */ * preference of a user, let elrails enabled; it can be disabled manually */
if (CheckSavegameVersion(38)) { if (CheckSavegameVersion(38)) _patches.disable_elrails = false;
_patches.disable_elrails = false; // enable elrails /* do the same as when elrails were enabled/disabled manually just now */
/* do the same as when elrails were enabled/disabled manually just now */ SettingsDisableElrail(_patches.disable_elrails);
SettingsDisableElrail(_patches.disable_elrails);
}
if (CheckSavegameVersion(43)) { if (CheckSavegameVersion(43)) {
for (TileIndex t = 0; t < map_size; t++) { for (TileIndex t = 0; t < map_size; t++) {