summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-08-31 08:16:28 +0000
committertron <tron@openttd.org>2006-08-31 08:16:28 +0000
commit10b9f692c7dc21c4afc98a364f7af930176b0cdd (patch)
tree53c435e681163a0b88903a8cb4f03c792a1efbb3
parent32d26ef6b8aabbcb1fd8359bac5a72bf92b3edfd (diff)
downloadopenttd-10b9f692c7dc21c4afc98a364f7af930176b0cdd.tar.xz
(svn r6259) Extract the axis directly, don't use a trinary operator
-rw-r--r--rail_map.h2
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)