summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-08-15 14:27:54 +0000
committeralberth <alberth@openttd.org>2009-08-15 14:27:54 +0000
commitff60a5605cb6dde382e5bfe1fd026c3a047fb555 (patch)
tree4016bec1840eb950a32cf7630050c90ccb1e529f
parentcd1de081c29181096763f318671c2e38e3d1019b (diff)
downloadopenttd-ff60a5605cb6dde382e5bfe1fd026c3a047fb555.tar.xz
(svn r17187) -Codechange: Make switches on news display mode complete.
-rw-r--r--src/news_gui.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp
index 0f7e01e53..fc616e211 100644
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -254,7 +254,7 @@ struct NewsWindow : Window {
break;
}
- default:
+ case NM_SMALL:
this->DrawWidgets();
if (!(this->ni->flags & NF_VIEWPORT)) {
CopyInDParam(0, this->ni->params, lengthof(this->ni->params));
@@ -265,6 +265,8 @@ struct NewsWindow : Window {
DrawStringMultiLine(2, this->width - 2, 64, this->height, this->ni->string_id, TC_FROMSTRING, SA_CENTER);
}
break;
+
+ default: NOT_REACHED();
}
}
@@ -443,7 +445,7 @@ static void ShowNewspaper(NewsItem *ni)
}
break;
- default:
+ case NM_SMALL:
_news_type0_desc.top = top;
w = new NewsWindow(&_news_type0_desc, ni);
if (ni->flags & NF_VIEWPORT) {
@@ -451,6 +453,8 @@ static void ShowNewspaper(NewsItem *ni)
ni->reftype1 == NR_VEHICLE ? 0x80000000 | ni->ref1 : GetReferenceTile(ni->reftype1, ni->ref1), ZOOM_LVL_NEWS);
}
break;
+
+ default: NOT_REACHED();
}
}