summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2014-02-23 19:32:00 +0000
committerfrosch <frosch@openttd.org>2014-02-23 19:32:00 +0000
commite9f7103ad7326365c80ff558f24e4ecf91c8906c (patch)
treeadba4255d12a3b52b58db914d6ef4fca746b2008 /src/openttd.cpp
parent5fa2a6faec2f21fda8b60108fefdddc122ee48d0 (diff)
downloadopenttd-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.cpp4
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();