summaryrefslogtreecommitdiff
path: root/src/newgrf_airport.h
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_airport.h
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_airport.h')
-rw-r--r--src/newgrf_airport.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/newgrf_airport.h b/src/newgrf_airport.h
index c11372620..3404098bd 100644
--- a/src/newgrf_airport.h
+++ b/src/newgrf_airport.h
@@ -23,6 +23,14 @@ struct AirportTileTable {
StationGfx gfx;
};
+/** TTDP airport types. Used to map our types to TTDPatch's */
+enum {
+ ATP_TTDP_SMALL, ///< Same as AT_SMALL
+ ATP_TTDP_LARGE, ///< Same as AT_LARGE
+ ATP_TTDP_HELIPORT, ///< Same as AT_HELIPORT
+ ATP_TTDP_OILRIG, ///< Same as AT_OILRIG
+};
+
/**
* Defines the data structure for an airport.
*/
@@ -36,6 +44,7 @@ struct AirportSpec {
byte catchment; ///< catchment area of this airport
Year min_year; ///< first year the airport is available
Year max_year; ///< last year the airport is available
+ byte ttd_airport_type; ///< ttdpatch airport type (Small/Large/Helipad/Oilrig)
static const AirportSpec *Get(byte type);