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 | 463cf2ec6bc487aaf3c1ca6a5ea4bcca56194254 (patch) | |
tree | 6a9a867d57cdc9d1a608088bf29d0b1186ef6934 /road_map.h | |
parent | 7bce62899c796cc114224c159249c7b302d2deae (diff) | |
download | openttd-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.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: |