MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / StartNewGameWithoutGUI

Function StartNewGameWithoutGUI

src/genworld_gui.cpp:1067–1073  ·  view source on GitHub ↗

* Start a normal game without the GUI. * @param seed The seed of the new game. */

Source from the content-addressed store, hash-verified

1065 * @param seed The seed of the new game.
1066 */
1067void StartNewGameWithoutGUI(uint32_t seed)
1068{
1069 /* GenerateWorld takes care of the possible GENERATE_NEW_SEED value in 'seed' */
1070 _settings_newgame.game_creation.generation_seed = seed;
1071
1072 StartGeneratingLandscape(GLWM_GENERATE);
1073}
1074
1075struct CreateScenarioWindow : public Window
1076{

Callers 5

OnClickMethod · 0.85
ConNewGameFunction · 0.85
ConRestartFunction · 0.85
OnClickMethod · 0.85
MainLoopMethod · 0.85

Calls 1

StartGeneratingLandscapeFunction · 0.85

Tested by

no test coverage detected