From 592b0c4e514be6a952aef08564cc7284727b8807 Mon Sep 17 00:00:00 2001 From: belugas Date: Sun, 11 Nov 2007 01:39:15 +0000 Subject: (svn r11404) -Codechange: remove 2 magical numbers --- src/main_gui.cpp | 2 +- src/news_gui.cpp | 2 +- 2 files changed, 2 insertions(+), 2 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)); 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)); -- cgit v1.2.3-70-g09d2