diff options
author | rubidium <rubidium@openttd.org> | 2008-05-10 12:30:27 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-10 12:30:27 +0000 |
commit | f7108760378c98077b1c664939d0e2c32a21624f (patch) | |
tree | a5bdbc9159ef2a9e4438fbff08ec11d3adba7744 /src/statusbar_gui.cpp | |
parent | 2c96ce4506163ad1528db6a4340964af99fc1de2 (diff) | |
download | openttd-f7108760378c98077b1c664939d0e2c32a21624f.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.cpp | 7 |
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: |