diff options
author | tron <tron@openttd.org> | 2006-03-12 16:13:16 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-12 16:13:16 +0000 |
commit | eeb5bf41a152087031b0764d5d3b2783922b70ae (patch) | |
tree | 3d2526e7f2638131186fe93a08829d1bf29f22b5 /rail_map.h | |
parent | 0100871412ac1b48aa64a87f2d88d8276212963e (diff) | |
download | openttd-eeb5bf41a152087031b0764d5d3b2783922b70ae.tar.xz |
(svn r3831) Add and use GetRailDepotDirection()
Diffstat (limited to 'rail_map.h')
-rw-r--r-- | rail_map.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rail_map.h b/rail_map.h index 9affa2247..ee407a384 100644 --- a/rail_map.h +++ b/rail_map.h @@ -8,6 +8,12 @@ #include "waypoint.h" +static inline DiagDirection GetRailDepotDirection(TileIndex t) +{ + return (DiagDirection)GB(_m[t].m5, 0, 2); +} + + static inline TrackBits GetRailWaypointBits(TileIndex t) { return _m[t].m5 & RAIL_WAYPOINT_TRACK_MASK ? TRACK_BIT_Y : TRACK_BIT_X; |