From cdf6c8c7587a6a08f2e46e83b33d542052237432 Mon Sep 17 00:00:00 2001 From: glx22 Date: Thu, 3 Apr 2025 22:34:51 +0200 Subject: [PATCH] Change: [Script] Start GS (but don't run it) when generating world in scenario editor --- src/genworld.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/genworld.cpp b/src/genworld.cpp index 83fc6a0916..a8ef616a47 100644 --- a/src/genworld.cpp +++ b/src/genworld.cpp @@ -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;