summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-01-17 22:44:49 +0000
committerpeter1138 <peter1138@openttd.org>2007-01-17 22:44:49 +0000
commit554a756b67187409d7dc01b89e9c9bd73abfd49e (patch)
tree0e41bec0180c2bb95f03bfb63584562746a1c22a
parentd80009c611f9eee5ac727690c5d9bde071b73d4f (diff)
downloadopenttd-554a756b67187409d7dc01b89e9c9bd73abfd49e.tar.xz
(svn r8214) -Fix (r8038): The fast forward flag stores 2 bits, not 1. Remember the
whole thing when turning off FF for autosave. This stops FF getting stuck on if the FF key is released during the save.
-rw-r--r--src/saveload.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/saveload.cpp b/src/saveload.cpp
index ee4a99187..e4aa5d593 100644
--- a/src/saveload.cpp
+++ b/src/saveload.cpp
@@ -1049,7 +1049,7 @@ static void UninitNoComp(void)
typedef struct ThreadedSave {
uint count;
- bool ff_state;
+ byte ff_state;
bool saveinprogress;
CursorID cursor;
} ThreadedSave;
@@ -1397,8 +1397,8 @@ static inline SaveOrLoadResult AbortSaveLoad(void)
* saving takes Aaaaages */
void SaveFileStart(void)
{
- _ts.ff_state = (_fast_forward != 0);
- _fast_forward = false;
+ _ts.ff_state = _fast_forward;
+ _fast_forward = 0;
if (_cursor.sprite == SPR_CURSOR_MOUSE) SetMouseCursor(SPR_CURSOR_ZZZ, PAL_NONE);
SendWindowMessage(WC_STATUS_BAR, 0, true, 0, 0);