Skip to content

Commit cdf6c8c

Browse files
committed
Change: [Script] Start GS (but don't run it) when generating world in scenario editor
1 parent 7c1649d commit cdf6c8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/genworld.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ static void _GenerateWorld()
166166
StartupDisasters();
167167
_generating_world = false;
168168

169+
Game::StartNew();
170+
169171
/* No need to run the tile loop in the scenario editor. */
170172
if (GenWorldInfo::mode != GWM_EMPTY) {
171173
uint i;
@@ -178,8 +180,6 @@ static void _GenerateWorld()
178180
}
179181

180182
if (_game_mode != GM_EDITOR) {
181-
Game::StartNew();
182-
183183
if (Game::GetInstance() != nullptr) {
184184
SetGeneratingWorldProgress(GWP_RUNSCRIPT, 2500);
185185
_generating_world = true;

0 commit comments

Comments
 (0)