summaryrefslogtreecommitdiff
path: root/road_map.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-08 15:29:23 +0000
committertron <tron@openttd.org>2006-03-08 15:29:23 +0000
commit463cf2ec6bc487aaf3c1ca6a5ea4bcca56194254 (patch)
tree6a9a867d57cdc9d1a608088bf29d0b1186ef6934 /road_map.h
parent7bce62899c796cc114224c159249c7b302d2deae (diff)
downloadopenttd-463cf2ec6bc487aaf3c1ca6a5ea4bcca56194254.tar.xz
(svn r3795) Add a function to request the orientation of a depot
Diffstat (limited to 'road_map.h')
-rw-r--r--road_map.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/road_map.h b/road_map.h
index 1aa3ea88c..6eccc3249 100644
--- a/road_map.h
+++ b/road_map.h
@@ -62,6 +62,12 @@ static inline RoadType GetRoadType(TileIndex tile)
}
+static inline DiagDirection GetRoadDepotDirection(TileIndex tile)
+{
+ return (DiagDirection)GB(_m[tile].m5, 0, 2);
+}
+
+
/**
* Returns the RoadBits on an arbitrary tile
* Special behavior: