# HG changeset patch # User tron # Date 1157012188 0 # Node ID 0f8f3a3d67680f9244e84b00ec99e6e8cde1a447 # Parent e4bf558ae47949cd1f854a23b0b11830b4d854d3 (svn r6259) Extract the axis directly, don't use a trinary operator diff -r e4bf558ae479 -r 0f8f3a3d6768 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)