summaryrefslogtreecommitdiff
path: root/src/news_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-09-02 20:44:36 +0000
committeralberth <alberth@openttd.org>2009-09-02 20:44:36 +0000
commita536a1545934a69f886824b17367233f2f9a14bd (patch)
tree6b35e97aaac6e9e697849fc49ea7c4315e2a346f /src/news_gui.cpp
parenta3ddb8a235058618502f98a60bb35c45a958fa9d (diff)
downloadopenttd-a536a1545934a69f886824b17367233f2f9a14bd.tar.xz
(svn r17392) -Codechange: Use 'default' for reacting on click.
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r--src/news_gui.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp
index 41870a82f..52bd55aa9 100644
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -366,7 +366,11 @@ struct NewsWindow : Window {
_forced_news = NULL;
break;
- case NTW_HEADLINE:
+ case NTW_CAPTION:
+ case NTW_VIEWPORT:
+ break; // Ignore clicks
+
+ default:
if (this->ni->reftype1 == NR_VEHICLE) {
const Vehicle *v = Vehicle::Get(this->ni->ref1);
ScrollMainWindowTo(v->x_pos, v->y_pos, v->z_pos);