summaryrefslogtreecommitdiff
path: root/subsidy_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-09-28 19:35:36 +0000
committertron <tron@openttd.org>2005-09-28 19:35:36 +0000
commitce1c72cf6ece7b5aaa0bac1a546efa55bdc851db (patch)
treefabd4f30d2f27b1466d0b8f0c8737b900cf5634c /subsidy_gui.c
parent6249dd46ad3b1b23ae959f57a0def00cf98dd8ee (diff)
downloadopenttd-ce1c72cf6ece7b5aaa0bac1a546efa55bdc851db.tar.xz
(svn r2995) Replace 0xFF/0xFFFF with CT_INVALID/OWNER_SPECTATOR/INVALID_STATION where appropriate
Diffstat (limited to 'subsidy_gui.c')
-rw-r--r--subsidy_gui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/subsidy_gui.c b/subsidy_gui.c
index cfb15d443..db09ec9c5 100644
--- a/subsidy_gui.c
+++ b/subsidy_gui.c
@@ -25,7 +25,7 @@ static void HandleSubsidyClick(int y)
num = 0;
for(s=_subsidies; s != endof(_subsidies); s++) {
- if (s->cargo_type != 0xFF && s->age < 12) {
+ if (s->cargo_type != CT_INVALID && s->age < 12) {
y -= 10;
if (y < 0) goto handle_click;
num++;
@@ -41,7 +41,7 @@ static void HandleSubsidyClick(int y)
if (y < 0) return;
for(s=_subsidies; s != endof(_subsidies); s++) {
- if (s->cargo_type != 0xFF && s->age >= 12) {
+ if (s->cargo_type != CT_INVALID && s->age >= 12) {
y -= 10;
if (y < 0) goto handle_click;
}
@@ -92,7 +92,7 @@ static void DrawSubsidiesWindow(Window *w)
num = 0;
for(s=_subsidies; s != endof(_subsidies); s++) {
- if (s->cargo_type != 0xFF && s->age < 12) {
+ if (s->cargo_type != CT_INVALID && s->age < 12) {
SetupSubsidyDecodeParam(s, 1);
x2 = DrawString(x+2, y, STR_2027_FROM_TO, 0);
@@ -113,7 +113,7 @@ static void DrawSubsidiesWindow(Window *w)
num = 0;
for(s=_subsidies; s != endof(_subsidies); s++) {
- if (s->cargo_type != 0xFF && s->age >= 12) {
+ if (s->cargo_type != CT_INVALID && s->age >= 12) {
SetupSubsidyDecodeParam(s, 1);
p = GetPlayer(GetStation(s->to)->owner);