summaryrefslogtreecommitdiff
path: root/src/statusbar_gui.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-01-09 20:42:17 +0000
committersmatz <smatz@openttd.org>2009-01-09 20:42:17 +0000
commit5fc7fe9648b8f6c4f2d361e8cc4958ac34402a75 (patch)
tree1d0452dcb858922d011ce28cb9427233c1ce1e43 /src/statusbar_gui.cpp
parent5c666fac143ece6d72207c7fb33cc74e5fa0a562 (diff)
downloadopenttd-5fc7fe9648b8f6c4f2d361e8cc4958ac34402a75.tar.xz
(svn r14940) -Fix: let the statusbar know the current news are invalid or bad things will happen
Diffstat (limited to 'src/statusbar_gui.cpp')
-rw-r--r--src/statusbar_gui.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/statusbar_gui.cpp b/src/statusbar_gui.cpp
index c125b16cc..5283a01a5 100644
--- a/src/statusbar_gui.cpp
+++ b/src/statusbar_gui.cpp
@@ -126,6 +126,10 @@ struct StatusBarWindow : Window {
case SBI_SAVELOAD_FINISH: this->saving = false; break;
case SBI_SHOW_TICKER: this->ticker_scroll = 360; break;
case SBI_SHOW_REMINDER: this->reminder_timeout = 91; break;
+ case SBI_NEWS_DELETED:
+ this->ticker_scroll = -1280; // reset ticker ...
+ this->reminder_timeout = 0; // ... and reminder
+ break;
}
}