mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r26369) -Fix-ish: Do not run scripts during command replay.
This commit is contained in:
parent
5fa2a6faec
commit
e9f7103ad7
|
@ -1347,7 +1347,9 @@ void StateGameLoop()
|
|||
/* don't execute the state loop during pause */
|
||||
if (_pause_mode != PM_UNPAUSED) {
|
||||
UpdateLandscapingLimits();
|
||||
#ifndef DEBUG_DUMP_COMMANDS
|
||||
Game::GameLoop();
|
||||
#endif
|
||||
CallWindowTickEvent();
|
||||
return;
|
||||
}
|
||||
|
@ -1387,8 +1389,10 @@ void StateGameLoop()
|
|||
CallLandscapeTick();
|
||||
ClearPersistentStorageChanges(true);
|
||||
|
||||
#ifndef DEBUG_DUMP_COMMANDS
|
||||
AI::GameLoop();
|
||||
Game::GameLoop();
|
||||
#endif
|
||||
UpdateLandscapingLimits();
|
||||
|
||||
CallWindowTickEvent();
|
||||
|
|
Loading…
Reference in New Issue