diff options
author | frosch <frosch@openttd.org> | 2014-02-23 19:32:00 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2014-02-23 19:32:00 +0000 |
commit | e9f7103ad7326365c80ff558f24e4ecf91c8906c (patch) | |
tree | adba4255d12a3b52b58db914d6ef4fca746b2008 /src/openttd.cpp | |
parent | 5fa2a6faec2f21fda8b60108fefdddc122ee48d0 (diff) | |
download | openttd-e9f7103ad7326365c80ff558f24e4ecf91c8906c.tar.xz |
(svn r26369) -Fix-ish: Do not run scripts during command replay.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index 6c700a016..c0afb4a83 100644 --- 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(); |