diff options
author | tron <tron@openttd.org> | 2006-03-08 15:29:23 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-08 15:29:23 +0000 |
commit | 86550c94bc2ac30202d3df1f72804faf43f8f202 (patch) | |
tree | 6a9a867d57cdc9d1a608088bf29d0b1186ef6934 /road_map.h | |
parent | c3fffd07f2eb0fe1ba85af99f61dbf9705e1a803 (diff) | |
download | openttd-86550c94bc2ac30202d3df1f72804faf43f8f202.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.h | 6 |
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: |