summaryrefslogtreecommitdiff
path: root/station_cmd.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-10-17 17:59:41 +0000
committerDarkvater <darkvater@openttd.org>2006-10-17 17:59:41 +0000
commitfba7d2f7f32aaef9497abbe8f1d7423b1a9d9220 (patch)
tree78e9f63f8221b7a2f6a4824b9b0d23036795510d /station_cmd.c
parentec9e59b4fc1e04823f1637e26e04c8d5e8047fec (diff)
downloadopenttd-fba7d2f7f32aaef9497abbe8f1d7423b1a9d9220.tar.xz
(svn r6803) -Codechange: Substitute magic numbers by an enum for the news windows
Diffstat (limited to 'station_cmd.c')
-rw-r--r--station_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/station_cmd.c b/station_cmd.c
index abf54a413..373f30a90 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -539,7 +539,7 @@ static void ShowRejectOrAcceptNews(const Station *st, uint32 items, StringID msg
SetDParam(2, GB(items, 16, 16));
SetDParam(1, GB(items, 0, 16));
SetDParam(0, st->index);
- AddNewsItem(msg + ((items >> 16)?1:0), NEWS_FLAGS(NM_SMALL, NF_VIEWPORT|NF_TILE, NT_ACCEPTANCE, 0), st->xy, 0);
+ AddNewsItem(msg + (GB(items, 16, 16) ? 1 : 0), NEWS_FLAGS(NM_SMALL, NF_VIEWPORT|NF_TILE, NT_ACCEPTANCE, 0), st->xy, 0);
}
}