summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-11-27 18:39:55 +0000
committerglx <glx@openttd.org>2008-11-27 18:39:55 +0000
commit93ee81fa45ebd1ec7236f523b2513b57d96930ed (patch)
tree50ead9389edca0bfa111f07e9d2bd95af0a2b509 /src
parent7b7e3e0fcee23555b73d1ff2abba5447cf7f3b1b (diff)
downloadopenttd-93ee81fa45ebd1ec7236f523b2513b57d96930ed.tar.xz
(svn r14638) -Fix [FS#2430]: don't restore fast-forward when SaveFileDone() callback happens after we returned to the menu
Diffstat (limited to 'src')
-rw-r--r--src/saveload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload.cpp b/src/saveload.cpp
index ac441ffba..a01d8137d 100644
--- a/src/saveload.cpp
+++ b/src/saveload.cpp
@@ -1523,7 +1523,7 @@ static void SaveFileStart()
* on saveload */
static void SaveFileDone()
{
- _fast_forward = _ts.ff_state;
+ if (_game_mode != GM_MENU) _fast_forward = _ts.ff_state;
if (_cursor.sprite == SPR_CURSOR_ZZZ) SetMouseCursor(SPR_CURSOR_MOUSE, PAL_NONE);
InvalidateWindowData(WC_STATUS_BAR, 0, SBI_SAVELOAD_FINISH);