summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2016-08-15 18:32:48 +0000
committerfrosch <frosch@openttd.org>2016-08-15 18:32:48 +0000
commit4d1843a95e26a64ff3ff0b967d721794dbf0fe46 (patch)
tree45cc7785faf095e617ca096deb1d9d7ff0cfbde6 /src/saveload
parentca6493f2e638fe528107eb88d8be83815b5110b3 (diff)
downloadopenttd-4d1843a95e26a64ff3ff0b967d721794dbf0fe46.tar.xz
(svn r27627) -Codechange: Deduplicate some cursor magic into SetMouseCursorBusy.
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/saveload.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp
index 724bc649b..3d6f3c494 100644
--- a/src/saveload/saveload.cpp
+++ b/src/saveload/saveload.cpp
@@ -2460,7 +2460,7 @@ static void SaveFileStart()
{
_sl.ff_state = _fast_forward;
_fast_forward = 0;
- if (_cursor.sprite == SPR_CURSOR_MOUSE) SetMouseCursor(SPR_CURSOR_ZZZ, PAL_NONE);
+ SetMouseCursorBusy(true);
InvalidateWindowData(WC_STATUS_BAR, 0, SBI_SAVELOAD_START);
_sl.saveinprogress = true;
@@ -2470,7 +2470,7 @@ static void SaveFileStart()
static void SaveFileDone()
{
if (_game_mode != GM_MENU) _fast_forward = _sl.ff_state;
- if (_cursor.sprite == SPR_CURSOR_ZZZ) SetMouseCursor(SPR_CURSOR_MOUSE, PAL_NONE);
+ SetMouseCursorBusy(false);
InvalidateWindowData(WC_STATUS_BAR, 0, SBI_SAVELOAD_FINISH);
_sl.saveinprogress = false;