Mercurial > hg > openttd
changeset 5719:16309367ff75 draft
(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.
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Wed, 17 Jan 2007 22:44:49 +0000 |
parents | e9077998bcac |
children | 3b0fb1e298cc |
files | src/saveload.cpp |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/saveload.cpp +++ b/src/saveload.cpp @@ -1049,7 +1049,7 @@ typedef struct ThreadedSave { uint count; - bool ff_state; + byte ff_state; bool saveinprogress; CursorID cursor; } ThreadedSave; @@ -1397,8 +1397,8 @@ * 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);