From 0e8f006dc18e8faff93382fe8044d046c36e86f4 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 14 Feb 2007 16:37:16 +0000 Subject: (svn r8735) -Feature: drive-through road stops made possible by the hard work of mart3p. --- src/road_map.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/road_map.cpp') diff --git a/src/road_map.cpp b/src/road_map.cpp index ccbf7b614..704d7de3e 100644 --- a/src/road_map.cpp +++ b/src/road_map.cpp @@ -24,6 +24,7 @@ RoadBits GetAnyRoadBits(TileIndex tile) case MP_STATION: if (!IsRoadStopTile(tile)) return ROAD_NONE; + if (IsDriveThroughStopTile(tile)) return (GetRoadStopDir(tile) == DIAGDIR_NE) ? ROAD_X : ROAD_Y; return DiagDirToRoadBits(GetRoadStopDir(tile)); case MP_TUNNELBRIDGE: @@ -45,7 +46,7 @@ TrackBits GetAnyRoadTrackBits(TileIndex tile) uint32 r; // Don't allow local authorities to build roads through road depots or road stops. - if ((IsTileType(tile, MP_STREET) && IsTileDepotType(tile, TRANSPORT_ROAD)) || IsTileType(tile, MP_STATION)) { + if ((IsTileType(tile, MP_STREET) && IsTileDepotType(tile, TRANSPORT_ROAD)) || (IsTileType(tile, MP_STATION) && !IsDriveThroughStopTile(tile))) { return TRACK_BIT_NONE; } -- cgit v1.2.3-54-g00ecf