Changeset - r21281:4a814c1ff2c8
[Not reviewed]
master
0 1 0
frosch - 10 years ago 2014-02-23 19:32:00
frosch@openttd.org
(svn r26369) -Fix-ish: Do not run scripts during command replay.
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/openttd.cpp
Show inline comments
 
@@ -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();
0 comments (0 inline, 0 general)