summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-04-12 20:33:01 +0000
committerbelugas <belugas@openttd.org>2006-04-12 20:33:01 +0000
commit22e69aed4fbf22b757832142437a7daec6f2e5e1 (patch)
tree4d8670bca252085bef9516c8f37f06f5955c6e40
parente09b87f56e2148c335c5812461b70a4ddb4addf3 (diff)
downloadopenttd-22e69aed4fbf22b757832142437a7daec6f2e5e1.tar.xz
(svn r4404) Reverted part of r4403. GetRailStationAxis need assertion on IsRailwayStation. Thanks glx for spotting it
-rw-r--r--station_map.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/station_map.h b/station_map.h
index fe9d5a805..0aed8b432 100644
--- a/station_map.h
+++ b/station_map.h
@@ -162,6 +162,7 @@ static inline bool IsHangarTile(TileIndex t)
static inline Axis GetRailStationAxis(TileIndex t)
{
+ assert(IsRailwayStation(t));
return HASBIT(GetStationGfx(t), 0) ? AXIS_Y : AXIS_X;
}