diff options
author | yexo <yexo@openttd.org> | 2010-01-18 12:32:50 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-01-18 12:32:50 +0000 |
commit | ab68f08886743fd32ac52bdc666cbf2da9b53287 (patch) | |
tree | 59d999df01a07669be733777d5161b2ca30f2abf /src/station_map.h | |
parent | 84bc831e324071b252202e6bac472fe95686d462 (diff) | |
download | openttd-ab68f08886743fd32ac52bdc666cbf2da9b53287.tar.xz |
(svn r18857) -Codechange: don't rely on the fact that all airports are rectangular
Diffstat (limited to 'src/station_map.h')
-rw-r--r-- | src/station_map.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/station_map.h b/src/station_map.h index f4b3b691a..52e72657d 100644 --- a/src/station_map.h +++ b/src/station_map.h @@ -184,6 +184,16 @@ static inline bool IsAirport(TileIndex t) return GetStationType(t) == STATION_AIRPORT; } +/** + * Is this tile a station tile and an airport tile? + * @param t the tile to get the information from + * @return true if and only if the tile is an airport + */ +static inline bool IsAirportTile(TileIndex t) +{ + return IsTileType(t, MP_STATION) && IsAirport(t); +} + bool IsHangar(TileIndex t); /** |