From 86550c94bc2ac30202d3df1f72804faf43f8f202 Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 8 Mar 2006 15:29:23 +0000 Subject: (svn r3795) Add a function to request the orientation of a depot --- road_map.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'road_map.h') 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: -- cgit v1.2.3-54-g00ecf