summaryrefslogtreecommitdiff
path: root/station_map.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-26 19:20:15 +0000
committertron <tron@openttd.org>2006-03-26 19:20:15 +0000
commitcda8934a557f6a7066b48a7eecf46360aa795dee (patch)
treeab641b54ed908fa761cf34615a8966e70f7e78d1 /station_map.h
parent8f60df1817b9d45f8baa5ab96ab9affb6a7025f0 (diff)
downloadopenttd-cda8934a557f6a7066b48a7eecf46360aa795dee.tar.xz
(svn r4120) Use the new station functions where appropriate
Diffstat (limited to 'station_map.h')
-rw-r--r--station_map.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/station_map.h b/station_map.h
index 84693f9d9..97b848eed 100644
--- a/station_map.h
+++ b/station_map.h
@@ -111,6 +111,12 @@ static inline bool IsBuoy_(TileIndex t) // XXX _ due to naming conflict
}
+static inline bool IsHangarTile(TileIndex t)
+{
+ return IsTileType(t, MP_STATION) && IsHangar(t);
+}
+
+
static inline Axis GetRailStationAxis(TileIndex t)
{
assert(IsRailwayStation(t));