Skip to content

Commit 4310d7c

Browse files
authored
Fix: [Script] Only run the Game::GameLoop() in-game (OpenTTD#13896)
1 parent 4bd72e4 commit 4310d7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openttd.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@ void StateGameLoop()
12091209

12101210
if (!HasModalProgress()) UpdateLandscapingLimits();
12111211
#ifndef DEBUG_DUMP_COMMANDS
1212-
Game::GameLoop();
1212+
if (_game_mode == GM_NORMAL) Game::GameLoop();
12131213
#endif
12141214
return;
12151215
}

0 commit comments

Comments
 (0)