summaryrefslogtreecommitdiff
path: root/src/statusbar_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-10 12:30:27 +0000
committerrubidium <rubidium@openttd.org>2008-05-10 12:30:27 +0000
commit935434333badb8376f9dde535ddc50c18e9af3aa (patch)
treea5bdbc9159ef2a9e4438fbff08ec11d3adba7744 /src/statusbar_gui.cpp
parentf23026cce8fa49974e3dd06e00dd073cb45f906b (diff)
downloadopenttd-935434333badb8376f9dde535ddc50c18e9af3aa.tar.xz
(svn r13028) -Codechange: WE_MESSAGE and WE_INVALIDATE_DATA were doing the same thing.
Diffstat (limited to 'src/statusbar_gui.cpp')
-rw-r--r--src/statusbar_gui.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/statusbar_gui.cpp b/src/statusbar_gui.cpp
index 8f00691ec..61fd57df0 100644
--- a/src/statusbar_gui.cpp
+++ b/src/statusbar_gui.cpp
@@ -86,7 +86,7 @@ static void StatusBarWndProc(Window *w, WindowEvent *e)
}
/* Draw status bar */
- if (w->message.msg) { // true when saving is active
+ if (WP(w, def_d).data_3) { // true when saving is active
DrawStringCenteredTruncated(w->widget[1].left + 1, w->widget[1].right - 1, 1, STR_SAVING_GAME, TC_FROMSTRING);
} else if (_do_autosave) {
DrawStringCenteredTruncated(w->widget[1].left + 1, w->widget[1].right - 1, 1, STR_032F_AUTOSAVE, TC_FROMSTRING);
@@ -113,9 +113,8 @@ static void StatusBarWndProc(Window *w, WindowEvent *e)
if (WP(w, def_d).data_2 > 0) DrawSprite(SPR_BLOT, PALETTE_TO_RED, w->widget[1].right - 11, 2);
} break;
- case WE_MESSAGE:
- w->message.msg = e->we.message.msg;
- w->SetDirty();
+ case WE_INVALIDATE_DATA:
+ WP(w, def_d).data_3 = e->we.invalidate.data;
break;
case WE_CLICK: