mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r6259) Extract the axis directly, don't use a trinary operator
This commit is contained in:
parent
32d26ef6b8
commit
10b9f692c7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user