summaryrefslogtreecommitdiff
path: root/src/newgrf_station.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-03-01 20:17:21 +0000
committeryexo <yexo@openttd.org>2010-03-01 20:17:21 +0000
commit3cda09170cf9e2560029393f2b688d7afec70cf4 (patch)
tree558aca1ac5a4c117a75da455faf2d972241979b8 /src/newgrf_station.cpp
parentfe5bb036a063d73b05bd15f5b6797e7c637e11ef (diff)
downloadopenttd-3cda09170cf9e2560029393f2b688d7afec70cf4.tar.xz
(svn r19299) -Codechange: store the most compatible ttd airport type in AirportSpec
-Fix: [NewGRF] return the ttd airport type in station var 0xF1
Diffstat (limited to 'src/newgrf_station.cpp')
-rw-r--r--src/newgrf_station.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp
index 26361f3fd..8dafa629f 100644
--- a/src/newgrf_station.cpp
+++ b/src/newgrf_station.cpp
@@ -524,7 +524,7 @@ uint32 Station::GetNewGRFVariable(const ResolverObject *object, byte variable, b
}
case 0x8A: return this->had_vehicle_of_type;
- case 0xF1: return this->airport_type;
+ case 0xF1: return (this->airport.tile != INVALID_TILE) ? this->GetAirportSpec()->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;