summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortron <tron@openttd.org>2007-01-26 20:22:34 +0000
committertron <tron@openttd.org>2007-01-26 20:22:34 +0000
commitccfddeca9c59bcd96818225bd3ddac1f18713d5b (patch)
tree4afdae5ec06b280e42e4b04471fd68497c0fd56d /src
parent7b38614756cd8672601dff2ad44001aa93fcca5b (diff)
downloadopenttd-ccfddeca9c59bcd96818225bd3ddac1f18713d5b.tar.xz
(svn r8422) -Fix
-Regression (r8314): Reevaluate the disabled elrail setting after loading because the railtype doesn't get saved anymore
Diffstat (limited to 'src')
-rw-r--r--src/openttd.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 1a85591d8..1f0b6af62 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -1662,11 +1662,9 @@ bool AfterLoadGame(void)
/* 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 (CheckSavegameVersion(38)) {
- _patches.disable_elrails = false; // enable elrails
- /* do the same as when elrails were enabled/disabled manually just now */
- SettingsDisableElrail(_patches.disable_elrails);
- }
+ if (CheckSavegameVersion(38)) _patches.disable_elrails = false;
+ /* do the same as when elrails were enabled/disabled manually just now */
+ SettingsDisableElrail(_patches.disable_elrails);
if (CheckSavegameVersion(43)) {
for (TileIndex t = 0; t < map_size; t++) {