summaryrefslogtreecommitdiff
path: root/src/main_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
commit750114477511cfa2f97b377b52b2140e3f2d207a (patch)
treed987e9f8bec58ef1fa441f5bf13ee4ab6a8927ad /src/main_gui.cpp
parente463f5687d697a67477450953863aaf72e61f481 (diff)
downloadopenttd-750114477511cfa2f97b377b52b2140e3f2d207a.tar.xz
(svn r11404) -Codechange: remove 2 magical numbers
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r--src/main_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp
index d84c6c2d1..77a1acdb1 100644
--- a/src/main_gui.cpp
+++ b/src/main_gui.cpp
@@ -2008,7 +2008,7 @@ static bool DrawScrollingStatusText(const NewsItem *ni, int pos, int width)
int x;
char buffer[256];
- 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));