(svn r26369) -Fix-ish: Do not run scripts during command replay.

This commit is contained in:
frosch 2014-02-23 19:32:00 +00:00
parent 5fa2a6faec
commit e9f7103ad7
1 changed files with 4 additions and 0 deletions

View File

@ -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();