|
|
|
@ -105,6 +105,11 @@ static void _GenerateWorld(void *)
|
|
|
|
|
/* Set the Random() seed to generation_seed so we produce the same map with the same seed */
|
|
|
|
|
if (_settings_game.game_creation.generation_seed == GENERATE_NEW_SEED) _settings_game.game_creation.generation_seed = _settings_newgame.game_creation.generation_seed = InteractiveRandom();
|
|
|
|
|
_random.SetSeed(_settings_game.game_creation.generation_seed);
|
|
|
|
|
|
|
|
|
|
/* Generates a unique id for the savegame, to avoid accidentally overwriting a save */
|
|
|
|
|
/* We keep id 0 for old savegames that don't have an id */
|
|
|
|
|
_settings_game.game_creation.generation_unique_id = _interactive_random.Next(UINT32_MAX - 1) + 1; /* Generates between [1,UINT32_MAX] */
|
|
|
|
|
|
|
|
|
|
SetGeneratingWorldProgress(GWP_MAP_INIT, 2);
|
|
|
|
|
SetObjectToPlace(SPR_CURSOR_ZZZ, PAL_NONE, HT_NONE, WC_MAIN_WINDOW, 0);
|
|
|
|
|
|
|
|
|
|