# HG changeset patch # User yexo # Date 2010-01-15 16:37:19 # Node ID 2f155b9f20dbc646b8e07bf874bab59d38694020 # Parent d068045bd82fbd119473ec63c52bcbd61ce8aba0 (svn r18808) -Cleanup: deplicate by using an existing function diff --git a/src/openttd.cpp b/src/openttd.cpp --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -826,10 +826,7 @@ static void MakeNewGame(bool from_height _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);