changeset 3541:91a08939858d draft

(svn r4404) Reverted part of r4403. GetRailStationAxis need assertion on IsRailwayStation. Thanks glx for spotting it
author belugas <belugas@openttd.org>
date Wed, 12 Apr 2006 20:33:01 +0000
parents 9ce56da91abd
children 65a544039b56
files station_map.h
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/station_map.h
+++ b/station_map.h
@@ -162,6 +162,7 @@
 
 static inline Axis GetRailStationAxis(TileIndex t)
 {
+	assert(IsRailwayStation(t));
 	return HASBIT(GetStationGfx(t), 0) ? AXIS_Y : AXIS_X;
 }