summaryrefslogtreecommitdiff
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
commit5dbccc6e077a416594c4d0d2b0e15a3f33508bf9 (patch)
tree50ead9389edca0bfa111f07e9d2bd95af0a2b509
parent663e3e210f29a74811947deeec2c27ae48db1db3 (diff)
downloadopenttd-5dbccc6e077a416594c4d0d2b0e15a3f33508bf9.tar.xz
(svn r14638) -Fix [FS#2430]: don't restore fast-forward when SaveFileDone() callback happens after we returned to the menu
-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);