summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-01-15 16:37:19 +0000
committeryexo <yexo@openttd.org>2010-01-15 16:37:19 +0000
commitf380a7239d3f40c08408e435d28db11f96a2ea4d (patch)
treede5c4eb9b2069a9bb80428c97646a25e52a7ea95
parentd669801f1d18e295e7497eaa19d0398da67bffe8 (diff)
downloadopenttd-f380a7239d3f40c08408e435d28db11f96a2ea4d.tar.xz
(svn r18808) -Cleanup: deplicate by using an existing function
-rw-r--r--src/openttd.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index e790e3724..19b539f3f 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -826,10 +826,7 @@ static void MakeNewGame(bool from_heightmap, bool reset_settings)
_game_mode = GM_NORMAL;
ResetGRFConfig(true);
- _engine_mngr.ResetToDefaultMapping();
- _house_mngr.ResetMapping();
- _industile_mngr.ResetMapping();
- _industry_mngr.ResetMapping();
+ InitializeDynamicVariables();
GenerateWorldSetCallback(&MakeNewGameDone);
GenerateWorld(from_heightmap ? GW_HEIGHTMAP : GW_NEWGAME, 1 << _settings_game.game_creation.map_x, 1 << _settings_game.game_creation.map_y, reset_settings);