summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rail_map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_map.h b/rail_map.h
index 4d609fc37..2755940c0 100644
--- a/rail_map.h
+++ b/rail_map.h
@@ -137,7 +137,7 @@ static inline DiagDirection GetRailDepotDirection(TileIndex t)
static inline Axis GetWaypointAxis(TileIndex t)
{
- return HASBIT(_m[t].m5, 0) ? AXIS_Y : AXIS_X;
+ return (Axis)GB(_m[t].m5, 0, 1);
}
static inline Track GetRailWaypointTrack(TileIndex t)