equal
deleted
inserted
replaced
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 |