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