src/genworld.cpp
branchnoai
changeset 9859 81621c6ba0e9
parent 9837 c9ec4f82e0d0
child 10172 f93d3b7df6c8
equal deleted inserted replaced
9858:b385c3ee0926 9859:81621c6ba0e9
    82 }
    82 }
    83 
    83 
    84 /**
    84 /**
    85  * The internal, real, generate function.
    85  * The internal, real, generate function.
    86  */
    86  */
    87 static void *_GenerateWorld(void *arg)
    87 static void * CDECL _GenerateWorld(void *arg)
    88 {
    88 {
    89 	_generating_world = true;
    89 	_generating_world = true;
    90 	if (_network_dedicated) DEBUG(net, 0, "Generating map, please wait...");
    90 	if (_network_dedicated) DEBUG(net, 0, "Generating map, please wait...");
    91 	/* Set the Random() seed to generation_seed so we produce the same map with the same seed */
    91 	/* Set the Random() seed to generation_seed so we produce the same map with the same seed */
    92 	if (_patches.generation_seed == GENERATE_NEW_SEED) _patches.generation_seed = _patches_newgame.generation_seed = InteractiveRandom();
    92 	if (_patches.generation_seed == GENERATE_NEW_SEED) _patches.generation_seed = _patches_newgame.generation_seed = InteractiveRandom();