From 464a56420f76454e9141ec0caefb9552aa608293 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 21 Apr 2010 12:55:33 +0000 Subject: (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 --- src/openttd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/openttd.cpp') 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; -- cgit v1.2.3-70-g09d2