diff options
author | yexo <yexo@openttd.org> | 2010-02-22 14:16:41 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-02-22 14:16:41 +0000 |
commit | 880fedc192ff65a9916d8f0f7c94f930b62822ad (patch) | |
tree | 650ae38dafdc7a97eb742f836804696cbbf6d885 /src/station_map.h | |
parent | 80fb5c70c8e5c41d519946fe59fba4185fe7af89 (diff) | |
download | openttd-880fedc192ff65a9916d8f0f7c94f930b62822ad.tar.xz |
(svn r19195) -Codechange: actually draw newgrf airport tiles
Diffstat (limited to 'src/station_map.h')
-rw-r--r-- | src/station_map.h | 13 |
1 files changed, 13 insertions, 0 deletions
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 @@ -263,6 +263,19 @@ static inline bool IsDriveThroughStopTile(TileIndex t) } /** + * 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 * @pre IsRoadStopTile(t) |