summaryrefslogtreecommitdiff
path: root/road_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'road_map.h')
-rw-r--r--road_map.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/road_map.h b/road_map.h
index d7858cfc9..b93dd8581 100644
--- a/road_map.h
+++ b/road_map.h
@@ -40,6 +40,11 @@ static inline RoadType GetRoadType(TileIndex t)
return GB(_m[t].m5, 4, 4);
}
+static inline bool IsLevelCrossing(TileIndex t)
+{
+ return GetRoadType(t) == ROAD_CROSSING;
+}
+
static inline RoadBits GetRoadBits(TileIndex t)
{