# HG changeset patch # User frosch # Date 2014-02-23 19:32:00 # Node ID 4a814c1ff2c835ebac812868832f9c3f9038947d # Parent b3ac8691354c2c984753af46e724b14dc229ee5a (svn r26369) -Fix-ish: Do not run scripts during command replay. diff --git a/src/openttd.cpp b/src/openttd.cpp --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -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();