summaryrefslogtreecommitdiff
path: root/src/station_map.h
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-02-22 14:16:41 +0000
committeryexo <yexo@openttd.org>2010-02-22 14:16:41 +0000
commit880fedc192ff65a9916d8f0f7c94f930b62822ad (patch)
tree650ae38dafdc7a97eb742f836804696cbbf6d885 /src/station_map.h
parent80fb5c70c8e5c41d519946fe59fba4185fe7af89 (diff)
downloadopenttd-880fedc192ff65a9916d8f0f7c94f930b62822ad.tar.xz
(svn r19195) -Codechange: actually draw newgrf airport tiles
Diffstat (limited to 'src/station_map.h')
-rw-r--r--src/station_map.h13
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)