mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r4404) Reverted part of r4403. GetRailStationAxis need assertion on IsRailwayStation. Thanks glx for spotting it
This commit is contained in:
parent
e09b87f56e
commit
22e69aed4f
@ -162,6 +162,7 @@ static inline bool IsHangarTile(TileIndex t)
|
|||||||
|
|
||||||
static inline Axis GetRailStationAxis(TileIndex t)
|
static inline Axis GetRailStationAxis(TileIndex t)
|
||||||
{
|
{
|
||||||
|
assert(IsRailwayStation(t));
|
||||||
return HASBIT(GetStationGfx(t), 0) ? AXIS_Y : AXIS_X;
|
return HASBIT(GetStationGfx(t), 0) ? AXIS_Y : AXIS_X;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user