1
0
Fork 0

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

release/1.4
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 */ /* don't execute the state loop during pause */
if (_pause_mode != PM_UNPAUSED) { if (_pause_mode != PM_UNPAUSED) {
UpdateLandscapingLimits(); UpdateLandscapingLimits();
#ifndef DEBUG_DUMP_COMMANDS
Game::GameLoop(); Game::GameLoop();
#endif
CallWindowTickEvent(); CallWindowTickEvent();
return; return;
} }
@ -1387,8 +1389,10 @@ void StateGameLoop()
CallLandscapeTick(); CallLandscapeTick();
ClearPersistentStorageChanges(true); ClearPersistentStorageChanges(true);
#ifndef DEBUG_DUMP_COMMANDS
AI::GameLoop(); AI::GameLoop();
Game::GameLoop(); Game::GameLoop();
#endif
UpdateLandscapingLimits(); UpdateLandscapingLimits();
CallWindowTickEvent(); CallWindowTickEvent();