(svn r4404) Reverted part of r4403. GetRailStationAxis need assertion on IsRailwayStation. Thanks glx for spotting it
authorbelugas
Wed, 12 Apr 2006 20:33:01 +0000
changeset 3541 5e680cec018c
parent 3540 83bd858fe9fe
child 3542 1bcf7ce45a31
(svn r4404) Reverted part of r4403. GetRailStationAxis need assertion on IsRailwayStation. Thanks glx for spotting it
station_map.h
--- a/station_map.h	Wed Apr 12 20:01:52 2006 +0000
+++ b/station_map.h	Wed Apr 12 20:33:01 2006 +0000
@@ -162,6 +162,7 @@
 
 static inline Axis GetRailStationAxis(TileIndex t)
 {
+	assert(IsRailwayStation(t));
 	return HASBIT(GetStationGfx(t), 0) ? AXIS_Y : AXIS_X;
 }