From 880fedc192ff65a9916d8f0f7c94f930b62822ad Mon Sep 17 00:00:00 2001 From: yexo Date: Mon, 22 Feb 2010 14:16:41 +0000 Subject: (svn r19195) -Codechange: actually draw newgrf airport tiles --- src/station_map.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/station_map.h') diff --git a/src/station_map.h b/src/station_map.h index 35b5c55c8..060457d15 100644 --- a/src/station_map.h +++ b/src/station_map.h @@ -262,6 +262,19 @@ static inline bool IsDriveThroughStopTile(TileIndex t) return IsRoadStopTile(t) && GetStationGfx(t) >= GFX_TRUCK_BUS_DRIVETHROUGH_OFFSET; } +/** + * Get the station graphics of this airport tile + * @param t the tile to query + * @pre IsAirport(t) + * @return the station graphics + */ +static inline StationGfx GetAirportGfx(TileIndex t) +{ + assert(IsAirport(t)); + extern StationGfx GetTranslatedAirportTileID(StationGfx gfx); + return GetTranslatedAirportTileID(GetStationGfx(t)); +} + /** * Gets the direction the road stop entrance points towards. * @param t the tile of the road stop -- cgit v1.2.3-54-g00ecf