# HG changeset patch # User tron # Date 1157012188 0 # Node ID 973c48d699bd91a4d804de621b8aa381d8b0e8fe # Parent 1acd836dcfe7a9e2f960e5bccc4e98dcbb2c6fcb (svn r6259) Extract the axis directly, don't use a trinary operator diff -r 1acd836dcfe7 -r 973c48d699bd rail_map.h --- a/rail_map.h Thu Aug 31 08:11:08 2006 +0000 +++ b/rail_map.h Thu Aug 31 08:16:28 2006 +0000 @@ -137,7 +137,7 @@ 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)