From 12d252d9bd7ffee83c4be5162cd506bda1070020 Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 12 Mar 2006 16:13:16 +0000 Subject: (svn r3831) Add and use GetRailDepotDirection() --- rail_map.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'rail_map.h') 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; -- cgit v1.2.3-54-g00ecf