summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorYexo <Yexo@openttd.org>2009-02-06 23:58:16 +0000
committerYexo <Yexo@openttd.org>2009-02-06 23:58:16 +0000
commitcaf540d284a8cb2a37afa9a0c4f35cb45dc05001 (patch)
tree704d7185e6e469e445e05c612930425abba3f43a /src/openttd.cpp
parent0caa32816f35d71761652164f170f227714ff9c8 (diff)
downloadopenttd-caf540d284a8cb2a37afa9a0c4f35cb45dc05001.tar.xz
(svn r15383) -Cleanup: Don't call MakeNewgameSettingsLive more often than necessary.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index ac729c206..3d7bdc094 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -661,8 +661,8 @@ int ttd_main(int argc, char *argv[])
/* XXX - ugly hack, if diff_level is 9, it means we got no setting from the config file */
if (_settings_newgame.difficulty.diff_level == 9) SetDifficultyLevel(0, &_settings_newgame.difficulty);
- /* Make sure _settings is filled with _settings_newgame if we switch to a game directly */
- if (_switch_mode != SM_NONE) MakeNewgameSettingsLive();
+ /* Copy the settings needed for creating a new map. */
+ _settings_game.game_creation = _settings_newgame.game_creation;
/* initialize the ingame console */
IConsoleInit();