mirror of https://github.com/OpenTTD/OpenTTD
(svn r12755) -Fix (r12706): aborting map generation was not properly handled
parent
02cdf01507
commit
a2884f0a3c
|
@ -86,6 +86,7 @@ bool IsGenerateWorldThreaded()
|
|||
*/
|
||||
static void * CDECL _GenerateWorld(void *arg)
|
||||
{
|
||||
try {
|
||||
_generating_world = true;
|
||||
if (_network_dedicated) DEBUG(net, 0, "Generating map, please wait...");
|
||||
/* Set the Random() seed to generation_seed so we produce the same map with the same seed */
|
||||
|
@ -164,7 +165,10 @@ static void * CDECL _GenerateWorld(void *arg)
|
|||
if (_network_dedicated) DEBUG(net, 0, "Map generated, starting game");
|
||||
|
||||
if (_patches.pause_on_newgame && _game_mode == GM_NORMAL) DoCommandP(0, 1, 0, NULL, CMD_PAUSE);
|
||||
|
||||
} catch (...) {
|
||||
_generating_world = false;
|
||||
throw;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue