1
0
Fork 0

Change: [Script] Start GS (but don't run it) when generating world in scenario editor

pull/13961/head
glx22 2025-04-03 22:34:51 +02:00
parent 7c1649d524
commit cdf6c8c758
1 changed files with 2 additions and 2 deletions

View File

@ -166,6 +166,8 @@ static void _GenerateWorld()
StartupDisasters();
_generating_world = false;
Game::StartNew();
/* No need to run the tile loop in the scenario editor. */
if (GenWorldInfo::mode != GWM_EMPTY) {
uint i;
@ -178,8 +180,6 @@ static void _GenerateWorld()
}
if (_game_mode != GM_EDITOR) {
Game::StartNew();
if (Game::GetInstance() != nullptr) {
SetGeneratingWorldProgress(GWP_RUNSCRIPT, 2500);
_generating_world = true;