From f380a7239d3f40c08408e435d28db11f96a2ea4d Mon Sep 17 00:00:00 2001 From: yexo Date: Fri, 15 Jan 2010 16:37:19 +0000 Subject: [PATCH] (svn r18808) -Cleanup: deplicate by using an existing function --- src/openttd.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/openttd.cpp b/src/openttd.cpp index e790e37248..19b539f3fa 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);