From e9f7103ad7326365c80ff558f24e4ecf91c8906c Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 23 Feb 2014 19:32:00 +0000 Subject: [PATCH] (svn r26369) -Fix-ish: Do not run scripts during command replay. --- src/openttd.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openttd.cpp b/src/openttd.cpp index 6c700a016e..c0afb4a83d 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();