(svn r6259) Extract the axis directly, don't use a trinary operator
authortron
Thu, 31 Aug 2006 08:16:28 +0000
changeset 4474 0f8f3a3d6768
parent 4473 e4bf558ae479
child 4475 ad2f3ff95d23
(svn r6259) Extract the axis directly, don't use a trinary operator
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)