mirror of https://github.com/OpenTTD/OpenTTD
(svn r18808) -Cleanup: deplicate by using an existing function
parent
d669801f1d
commit
f380a7239d
|
@ -826,10 +826,7 @@ static void MakeNewGame(bool from_heightmap, bool reset_settings)
|
||||||
_game_mode = GM_NORMAL;
|
_game_mode = GM_NORMAL;
|
||||||
|
|
||||||
ResetGRFConfig(true);
|
ResetGRFConfig(true);
|
||||||
_engine_mngr.ResetToDefaultMapping();
|
InitializeDynamicVariables();
|
||||||
_house_mngr.ResetMapping();
|
|
||||||
_industile_mngr.ResetMapping();
|
|
||||||
_industry_mngr.ResetMapping();
|
|
||||||
|
|
||||||
GenerateWorldSetCallback(&MakeNewGameDone);
|
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);
|
GenerateWorld(from_heightmap ? GW_HEIGHTMAP : GW_NEWGAME, 1 << _settings_game.game_creation.map_x, 1 << _settings_game.game_creation.map_y, reset_settings);
|
||||||
|
|
Loading…
Reference in New Issue