summaryrefslogtreecommitdiff
path: root/station_map.h
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
commit26f7c1c764b77bde9f31ca75e2710978b63d925f (patch)
tree4d8670bca252085bef9516c8f37f06f5955c6e40 /station_map.h
parentb505564ee7ceb253bf5ff53d52ce38bb952a70c3 (diff)
downloadopenttd-26f7c1c764b77bde9f31ca75e2710978b63d925f.tar.xz
(svn r4404) Reverted part of r4403. GetRailStationAxis need assertion on IsRailwayStation. Thanks glx for spotting it
Diffstat (limited to 'station_map.h')
-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;
}