summaryrefslogtreecommitdiff
path: root/src/newgrf_station.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-03-18 21:02:20 +0000
committeryexo <yexo@openttd.org>2010-03-18 21:02:20 +0000
commitc4a88ce0225a57243a79e28d133c2ecd884bee68 (patch)
tree766e1e5469d2c9d2956f5d6c79fd5bba787cf2ca /src/newgrf_station.cpp
parent0eb5709c86f8dbfdcf7f91a178e46be4a1bc53d0 (diff)
downloadopenttd-c4a88ce0225a57243a79e28d133c2ecd884bee68.tar.xz
(svn r19455) -Codechange: split all airport information in Station to a seperate class
Diffstat (limited to 'src/newgrf_station.cpp')
-rw-r--r--src/newgrf_station.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp
index 8dafa629f..0f4973da4 100644
--- a/src/newgrf_station.cpp
+++ b/src/newgrf_station.cpp
@@ -524,11 +524,11 @@ uint32 Station::GetNewGRFVariable(const ResolverObject *object, byte variable, b
}
case 0x8A: return this->had_vehicle_of_type;
- case 0xF1: return (this->airport.tile != INVALID_TILE) ? this->GetAirportSpec()->ttd_airport_type : ATP_TTDP_LARGE;
+ case 0xF1: return (this->airport.tile != INVALID_TILE) ? this->airport.GetSpec()->ttd_airport_type : ATP_TTDP_LARGE;
case 0xF2: return (this->truck_stops != NULL) ? this->truck_stops->status : 0;
case 0xF3: return (this->bus_stops != NULL) ? this->bus_stops->status : 0;
- case 0xF6: return this->airport_flags;
- case 0xF7: return GB(this->airport_flags, 8, 8);
+ case 0xF6: return this->airport.flags;
+ case 0xF7: return GB(this->airport.flags, 8, 8);
}
/* Handle cargo variables with parameter, 0x60 to 0x65 */