diff options
author | tron <tron@openttd.org> | 2006-08-31 08:16:28 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-08-31 08:16:28 +0000 |
commit | a400582d616fdb059a093aa7054bc674765ab622 (patch) | |
tree | 53c435e681163a0b88903a8cb4f03c792a1efbb3 /rail_map.h | |
parent | 5c1ba39472803695c64caf90e0844f655000635e (diff) | |
download | openttd-a400582d616fdb059a093aa7054bc674765ab622.tar.xz |
(svn r6259) Extract the axis directly, don't use a trinary operator
Diffstat (limited to 'rail_map.h')
-rw-r--r-- | rail_map.h | 2 |
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) |