(svn r8422) -Fix
authortron
Fri, 26 Jan 2007 20:22:34 +0000
changeset 6099 85bbae40f52c
parent 6098 bae0f4df5c3e
child 6100 280c81a05098
(svn r8422) -Fix

-Regression (r8314): Reevaluate the disabled elrail setting after loading because the railtype doesn't get saved anymore
src/openttd.cpp
--- a/src/openttd.cpp	Fri Jan 26 19:30:11 2007 +0000
+++ b/src/openttd.cpp	Fri Jan 26 20:22:34 2007 +0000
@@ -1662,11 +1662,9 @@
 
 	/* 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++) {