diff options
author | rubidium <rubidium@openttd.org> | 2008-05-16 07:08:04 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-16 07:08:04 +0000 |
commit | 7491b792e2201bb6c3fa62a1c99a5b6d83304d31 (patch) | |
tree | 71b42c2570a5e13678d6722deaf7787da0a7ade9 /src/saveload.cpp | |
parent | 7c7a4de3e58c4699e3c8f3ca5cf20fb874c1953c (diff) | |
download | openttd-7491b792e2201bb6c3fa62a1c99a5b6d83304d31.tar.xz |
(svn r13114) -Codechange: use InvalidateData instead of direct window access to modify the state of the statusbar from outside the statusbar.
Diffstat (limited to 'src/saveload.cpp')
-rw-r--r-- | src/saveload.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/saveload.cpp b/src/saveload.cpp index 3178efdcf..b69fdbfe2 100644 --- a/src/saveload.cpp +++ b/src/saveload.cpp @@ -30,6 +30,7 @@ #include "core/endian_func.hpp" #include "vehicle_base.h" #include "autoreplace_base.h" +#include "statusbar_gui.h" #include <list> #include "table/strings.h" @@ -1493,7 +1494,7 @@ static void SaveFileStart() _fast_forward = 0; if (_cursor.sprite == SPR_CURSOR_MOUSE) SetMouseCursor(SPR_CURSOR_ZZZ, PAL_NONE); - InvalidateWindowData(WC_STATUS_BAR, 0, true); + InvalidateWindowData(WC_STATUS_BAR, 0, SBI_SAVELOAD_START); _ts.saveinprogress = true; } @@ -1504,7 +1505,7 @@ static void SaveFileDone() _fast_forward = _ts.ff_state; if (_cursor.sprite == SPR_CURSOR_ZZZ) SetMouseCursor(SPR_CURSOR_MOUSE, PAL_NONE); - InvalidateWindowData(WC_STATUS_BAR, 0, false); + InvalidateWindowData(WC_STATUS_BAR, 0, SBI_SAVELOAD_FINISH); _ts.saveinprogress = false; } |