summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-25 19:13:55 +0000
committerrubidium <rubidium@openttd.org>2007-06-25 19:13:55 +0000
commit8b2c8b6164279d468a0da25cde96c1ac0c9efa60 (patch)
tree876c5604e0a8e4c90ab0fe50fdcd128feef0fca5 /src/openttd.cpp
parent992d64b0fbd38bac622840788ccd3f756204beba (diff)
downloadopenttd-8b2c8b6164279d468a0da25cde96c1ac0c9efa60.tar.xz
(svn r10329) -Feature [FS#812]: (patch) option to select the "default" rail type when you start a new game or load a game. This is done either static, i.e. rail, electrified rail, monorail and maglev, or dynamic which takes either the first or last available railtype or the railtype that is used most on the map.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index b3bd580c7..b05324862 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -85,6 +85,7 @@ void ResetMusic();
extern void SetDifficultyLevel(int mode, GameOptions *gm_opt);
extern Player* DoStartupNewPlayer(bool is_ai);
extern void ShowOSErrorBox(const char *buf);
+extern void SetDefaultRailGui();
const char *_default_blitter = "8bpp-optimized";
@@ -692,6 +693,7 @@ static void MakeNewGameDone()
DoCommandP(0, (_patches.autorenew << 15 ) | (_patches.autorenew_months << 16) | 4, _patches.autorenew_money, NULL, CMD_SET_AUTOREPLACE);
SettingsDisableElrail(_patches.disable_elrails);
+ SetDefaultRailGui();
MarkWholeScreenDirty();
}
@@ -1858,6 +1860,7 @@ bool AfterLoadGame()
if (CheckSavegameVersion(38)) _patches.disable_elrails = false;
/* do the same as when elrails were enabled/disabled manually just now */
SettingsDisableElrail(_patches.disable_elrails);
+ SetDefaultRailGui();
/* From version 53, the map array was changed for house tiles to allow
* space for newhouses grf features. A new byte, m7, was also added. */