mirror of https://github.com/OpenTTD/OpenTTD
(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.release/0.6
parent
3be30b8842
commit
652b804a9e
|
@ -1049,7 +1049,7 @@ static void UninitNoComp(void)
|
||||||
|
|
||||||
typedef struct ThreadedSave {
|
typedef struct ThreadedSave {
|
||||||
uint count;
|
uint count;
|
||||||
bool ff_state;
|
byte ff_state;
|
||||||
bool saveinprogress;
|
bool saveinprogress;
|
||||||
CursorID cursor;
|
CursorID cursor;
|
||||||
} ThreadedSave;
|
} ThreadedSave;
|
||||||
|
@ -1397,8 +1397,8 @@ static inline SaveOrLoadResult AbortSaveLoad(void)
|
||||||
* saving takes Aaaaages */
|
* saving takes Aaaaages */
|
||||||
void SaveFileStart(void)
|
void SaveFileStart(void)
|
||||||
{
|
{
|
||||||
_ts.ff_state = (_fast_forward != 0);
|
_ts.ff_state = _fast_forward;
|
||||||
_fast_forward = false;
|
_fast_forward = 0;
|
||||||
if (_cursor.sprite == SPR_CURSOR_MOUSE) SetMouseCursor(SPR_CURSOR_ZZZ, PAL_NONE);
|
if (_cursor.sprite == SPR_CURSOR_MOUSE) SetMouseCursor(SPR_CURSOR_ZZZ, PAL_NONE);
|
||||||
|
|
||||||
SendWindowMessage(WC_STATUS_BAR, 0, true, 0, 0);
|
SendWindowMessage(WC_STATUS_BAR, 0, true, 0, 0);
|
||||||
|
|
Loading…
Reference in New Issue