From 68ead6b84f56ad3c93d05ad3e09b7fbb8173cf26 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 22 Jul 2009 08:59:57 +0000 Subject: (svn r16909) -Fix [FS#2996]: NewGRF stations would be triggering assertions all over the place when using the more advanced station types. -Change: make (rail) waypoints sub classes of 'base stations', make buoys waypoints and unify code between them where possible. --- src/rail.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rail.cpp') diff --git a/src/rail.cpp b/src/rail.cpp index 2d7894e24..b5aa09fc8 100644 --- a/src/rail.cpp +++ b/src/rail.cpp @@ -155,7 +155,7 @@ RailType GetTileRailType(TileIndex tile) break; case MP_STATION: - if (IsRailwayStationTile(tile)) return GetRailType(tile); + if (IsRailwayStation(tile) || IsRailWaypoint(tile)) return GetRailType(tile); break; case MP_TUNNELBRIDGE: -- cgit v1.2.3-54-g00ecf