src/genworld.cpp
branchNewGRF_ports
changeset 6871 5a9dc001e1ad
parent 6719 4cc327ad39d5
child 6872 1c4a4a609f85
equal deleted inserted replaced
6870:ca3fd1fbe311 6871:5a9dc001e1ad
    18 #include "network/network.h"
    18 #include "network/network.h"
    19 #include "debug.h"
    19 #include "debug.h"
    20 #include "settings.h"
    20 #include "settings.h"
    21 #include "heightmap.h"
    21 #include "heightmap.h"
    22 #include "date.h"
    22 #include "date.h"
       
    23 #include "viewport.h"
    23 
    24 
    24 void GenerateClearTile();
    25 void GenerateClearTile();
    25 void GenerateIndustries();
    26 void GenerateIndustries();
    26 void GenerateUnmovables();
    27 void GenerateUnmovables();
    27 bool GenerateTowns();
    28 bool GenerateTowns();
    83 	if (_network_dedicated) DEBUG(net, 0, "Generating map, please wait...");
    84 	if (_network_dedicated) DEBUG(net, 0, "Generating map, please wait...");
    84 	/* Set the Random() seed to generation_seed so we produce the same map with the same seed */
    85 	/* Set the Random() seed to generation_seed so we produce the same map with the same seed */
    85 	if (_patches.generation_seed == GENERATE_NEW_SEED) _patches.generation_seed = _patches_newgame.generation_seed = InteractiveRandom();
    86 	if (_patches.generation_seed == GENERATE_NEW_SEED) _patches.generation_seed = _patches_newgame.generation_seed = InteractiveRandom();
    86 	_random_seeds[0][0] = _random_seeds[0][1] = _patches.generation_seed;
    87 	_random_seeds[0][0] = _random_seeds[0][1] = _patches.generation_seed;
    87 	SetGeneratingWorldProgress(GWP_MAP_INIT, 2);
    88 	SetGeneratingWorldProgress(GWP_MAP_INIT, 2);
    88 	SetObjectToPlace(SPR_CURSOR_ZZZ, PAL_NONE, 0, WC_MAIN_WINDOW, 0);
    89 	SetObjectToPlace(SPR_CURSOR_ZZZ, PAL_NONE, VHM_NONE, WC_MAIN_WINDOW, 0);
    89 
    90 
    90 	IncreaseGeneratingWorldProgress(GWP_MAP_INIT);
    91 	IncreaseGeneratingWorldProgress(GWP_MAP_INIT);
    91 	/* Must start economy early because of the costs. */
    92 	/* Must start economy early because of the costs. */
    92 	StartupEconomy();
    93 	StartupEconomy();
    93 
    94