diff options
author | belugas <belugas@openttd.org> | 2006-04-12 20:33:01 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2006-04-12 20:33:01 +0000 |
commit | 26f7c1c764b77bde9f31ca75e2710978b63d925f (patch) | |
tree | 4d8670bca252085bef9516c8f37f06f5955c6e40 /station_map.h | |
parent | b505564ee7ceb253bf5ff53d52ce38bb952a70c3 (diff) | |
download | openttd-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.h | 1 |
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; } |