(svn r6259) Extract the axis directly, don't use a trinary operator

This commit is contained in:
tron 2006-08-31 08:16:28 +00:00
parent 32d26ef6b8
commit 10b9f692c7

View File

@ -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)