diff options
author | yexo <yexo@openttd.org> | 2010-01-15 16:37:19 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-01-15 16:37:19 +0000 |
commit | f380a7239d3f40c08408e435d28db11f96a2ea4d (patch) | |
tree | de5c4eb9b2069a9bb80428c97646a25e52a7ea95 | |
parent | d669801f1d18e295e7497eaa19d0398da67bffe8 (diff) | |
download | openttd-f380a7239d3f40c08408e435d28db11f96a2ea4d.tar.xz |
(svn r18808) -Cleanup: deplicate by using an existing function
-rw-r--r-- | src/openttd.cpp | 5 |
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); |