summaryrefslogtreecommitdiff
path: root/src/newgrf_airport.h
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-03-19 11:17:52 +0000
committeryexo <yexo@openttd.org>2010-03-19 11:17:52 +0000
commit1579e9ded29b89678e4c56ac82b6907537a920a7 (patch)
treec043257beec5af4474692a648fcc16b39d33c4d2 /src/newgrf_airport.h
parentf2743cd5ed72a2d6224ffa828aab796ed771cef2 (diff)
downloadopenttd-1579e9ded29b89678e4c56ac82b6907537a920a7.tar.xz
(svn r19465) -Codechange: support for multi-tile hangars
Diffstat (limited to 'src/newgrf_airport.h')
-rw-r--r--src/newgrf_airport.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/newgrf_airport.h b/src/newgrf_airport.h
index 49a2cc754..004a7934f 100644
--- a/src/newgrf_airport.h
+++ b/src/newgrf_airport.h
@@ -46,6 +46,12 @@ enum TTDPAirportType {
ATP_TTDP_OILRIG, ///< Same as AT_OILRIG
};
+/** A list of all hangar tiles in an airport */
+struct HangarTileTable {
+ TileIndexDiffC ti;
+ byte hangar_num;
+};
+
/**
* Defines the data structure for an airport.
*/
@@ -53,8 +59,8 @@ struct AirportSpec {
const struct AirportFTAClass *fsm; ///< the finite statemachine for the default airports
const AirportTileTable * const *table; ///< list of the tiles composing the airport
byte num_table; ///< number of elements in the table
- const TileIndexDiffC *depot_table; ///< gives the position of the depots on the airports
- byte nof_depots; ///< the number of depots in this airport
+ const HangarTileTable *depot_table; ///< gives the position of the depots on the airports
+ byte nof_depots; ///< the number of hangar tiles in this airport
byte size_x; ///< size of airport in x direction
byte size_y; ///< size of airport in y direction
byte noise_level; ///< noise that this airport generates