summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-12-10 15:21:48 +0000
committerDarkvater <darkvater@openttd.org>2006-12-10 15:21:48 +0000
commit75c053453d0d743a8bba70f07236e45cba7826f9 (patch)
tree7cdddf81b8233a75c5d3c39797c1fd3ea1ff7dd7 /openttd.c
parentdf1684b0d94d2a253994dcfa844d7aa8d0567343 (diff)
downloadopenttd-75c053453d0d743a8bba70f07236e45cba7826f9.tar.xz
(svn r7470) -Codechange: Leave elrails enabled after loading old (pre-optional) and very old (pre-elrails) games. Let the user manually disable if if undesired.
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/openttd.c b/openttd.c
index 68322079f..2cb3b7c1e 100644
--- a/openttd.c
+++ b/openttd.c
@@ -1548,19 +1548,13 @@ bool AfterLoadGame(void)
ConvertNameArray();
}
- /* from version 38 we have optional elrails */
+ /* 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)) {
- /* old game - before elrails made optional */
- if (CheckSavegameVersion(24)) {
- /* very old game - before elrail was introduced */
- _patches.disable_elrails = true; // disable elrails
- } else {
- /* game with mandatory elrails (r4150+) */
- _patches.disable_elrails = false; // enable elrails
- }
+ _patches.disable_elrails = false; // enable elrails
+ /* do the same as when elrails were enabled/disabled manually just now */
+ SettingsDisableElrail(_patches.disable_elrails);
}
- /* do the same as when elrails were enabled/disabled manually just now */
- SettingsDisableElrail(_patches.disable_elrails);
return true;
}