1491 { |
1491 { |
1492 _ts.ff_state = _fast_forward; |
1492 _ts.ff_state = _fast_forward; |
1493 _fast_forward = 0; |
1493 _fast_forward = 0; |
1494 if (_cursor.sprite == SPR_CURSOR_MOUSE) SetMouseCursor(SPR_CURSOR_ZZZ, PAL_NONE); |
1494 if (_cursor.sprite == SPR_CURSOR_MOUSE) SetMouseCursor(SPR_CURSOR_ZZZ, PAL_NONE); |
1495 |
1495 |
1496 SendWindowMessage(WC_STATUS_BAR, 0, true, 0, 0); |
1496 InvalidateWindowData(WC_STATUS_BAR, 0, true); |
1497 _ts.saveinprogress = true; |
1497 _ts.saveinprogress = true; |
1498 } |
1498 } |
1499 |
1499 |
1500 /** Update the gui accordingly when saving is done and release locks |
1500 /** Update the gui accordingly when saving is done and release locks |
1501 * on saveload */ |
1501 * on saveload */ |
1502 static void SaveFileDone() |
1502 static void SaveFileDone() |
1503 { |
1503 { |
1504 _fast_forward = _ts.ff_state; |
1504 _fast_forward = _ts.ff_state; |
1505 if (_cursor.sprite == SPR_CURSOR_ZZZ) SetMouseCursor(SPR_CURSOR_MOUSE, PAL_NONE); |
1505 if (_cursor.sprite == SPR_CURSOR_ZZZ) SetMouseCursor(SPR_CURSOR_MOUSE, PAL_NONE); |
1506 |
1506 |
1507 SendWindowMessage(WC_STATUS_BAR, 0, false, 0, 0); |
1507 InvalidateWindowData(WC_STATUS_BAR, 0, false); |
1508 _ts.saveinprogress = false; |
1508 _ts.saveinprogress = false; |
1509 } |
1509 } |
1510 |
1510 |
1511 /** Set the error message from outside of the actual loading/saving of the game (AfterLoadGame and friends) */ |
1511 /** Set the error message from outside of the actual loading/saving of the game (AfterLoadGame and friends) */ |
1512 void SetSaveLoadError(StringID str) |
1512 void SetSaveLoadError(StringID str) |