summaryrefslogtreecommitdiff
path: root/rail_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'rail_map.h')
-rw-r--r--rail_map.h6
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;