summaryrefslogtreecommitdiff
path: root/src/news_gui.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-11-11 01:39:15 +0000
committerbelugas <belugas@openttd.org>2007-11-11 01:39:15 +0000
commit592b0c4e514be6a952aef08564cc7284727b8807 (patch)
treed987e9f8bec58ef1fa441f5bf13ee4ab6a8927ad /src/news_gui.cpp
parentd32604d59e048ee72f7540e9146c6ad6e5bd4a31 (diff)
downloadopenttd-592b0c4e514be6a952aef08564cc7284727b8807.tar.xz
(svn r11404) -Codechange: remove 2 magical numbers
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r--src/news_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp
index 724ec1e78..bf862da22 100644
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -652,7 +652,7 @@ static void DrawNewsString(int x, int y, uint16 color, const NewsItem *ni, uint
char *dest;
StringID str;
- if (ni->display_mode == 3) {
+ if (ni->display_mode == NM_CALLBACK) {
str = _get_news_string_callback[ni->callback](ni);
} else {
CopyInDParam(0, ni->params, lengthof(ni->params));