mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r11404) -Codechange: remove 2 magical numbers
This commit is contained in:
parent
d32604d59e
commit
592b0c4e51
|
@ -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));
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue