summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-05-04 18:07:18 +0000
committerpeter1138 <peter1138@openttd.org>2006-05-04 18:07:18 +0000
commit786f9992beb2106968f880e6a6f94ee5a30ae0da (patch)
treef1aa4d60a8f6ee95e1e465992cb37dd72da93bfd
parent7a168f81fa9157c733dd2aac305b94f8bb72405b (diff)
downloadopenttd-786f9992beb2106968f880e6a6f94ee5a30ae0da.tar.xz
(svn r4736) - Newstations: use the correct value for PBS status (No PBS)
-rw-r--r--newgrf_station.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/newgrf_station.c b/newgrf_station.c
index 202dbbda6..96f45c7f6 100644
--- a/newgrf_station.c
+++ b/newgrf_station.c
@@ -199,6 +199,7 @@ static uint32 StationGetVariable(const ResolverObject *object, byte variable, by
case 0x49: return 0x2110000; /* Platforms, tracks & position */
case 0x42: return 0; /* Rail type (XXX Get current type from GUI?) */
case 0x43: return _current_player; /* Station owner */
+ case 0x44: return 2; /* PBS status */
case 0xFA: return _date; /* Build date */
default: return -1;
}
@@ -208,7 +209,7 @@ static uint32 StationGetVariable(const ResolverObject *object, byte variable, by
/* Calculated station variables */
case 0x42: GetRailType(object->u.station.tile) << 8; /* Rail type */
case 0x43: return st->owner; /* Station owner */
- case 0x44: return 0; /* PBS status */
+ case 0x44: return 2; /* PBS status */
case 0x48: { /* Accepted cargo types */
CargoID cargo_type;
uint32 value = 0;