summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-04-21 12:55:33 +0000
committerrubidium <rubidium@openttd.org>2010-04-21 12:55:33 +0000
commit464a56420f76454e9141ec0caefb9552aa608293 (patch)
treeb2095edab50dd53486d523ca7bf7cd69251eae21 /src
parentbc81039cb8a5791055a101517280f71a65c05fa2 (diff)
downloadopenttd-464a56420f76454e9141ec0caefb9552aa608293.tar.xz
(svn r19688) -Codechange: run CheckCaches after the debug desync save, so we don't store just reset values in the savegame but the data from the previous tick
Diffstat (limited to 'src')
-rw-r--r--src/openttd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 2ba238509..0c04838f2 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -1204,8 +1204,6 @@ void StateGameLoop()
CallWindowTickEvent();
NewsLoop();
} else {
- CheckCaches();
-
if (_debug_desync_level > 2 && _date_fract == 0 && (_date & 0x1F) == 0) {
/* Save the desync savegame if needed. */
char name[MAX_PATH];
@@ -1213,6 +1211,8 @@ void StateGameLoop()
SaveOrLoad(name, SL_SAVE, AUTOSAVE_DIR);
}
+ CheckCaches();
+
/* All these actions has to be done from OWNER_NONE
* for multiplayer compatibility */
CompanyID old_company = _current_company;