summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2015-06-20 12:40:04 +0000
committerfrosch <frosch@openttd.org>2015-06-20 12:40:04 +0000
commit0e378747db60f8ab0f90cf8b2d107ec4ba602276 (patch)
tree3c907517716b196b8e50468e05388fdf1ce68e3c /src
parentfc50ff653174f82b2a34b89ccf967cb2914a59be (diff)
downloadopenttd-0e378747db60f8ab0f90cf8b2d107ec4ba602276.tar.xz
(svn r27305) -Fix [FS#6320]: Account for road-bridges and drive-through-stops in CanFollowRoad.
Diffstat (limited to 'src')
-rw-r--r--src/town_cmd.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index 4ac63d5de..5baaa64d3 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -1317,8 +1317,13 @@ static bool CanFollowRoad(TileIndex tile, DiagDirection dir)
case MP_ROAD:
return target_rb != ROAD_NONE;
- case MP_HOUSE:
case MP_STATION:
+ return IsDriveThroughStopTile(tile);
+
+ case MP_TUNNELBRIDGE:
+ return GetTunnelBridgeTransportType(tile) == TRANSPORT_ROAD;
+
+ case MP_HOUSE:
case MP_INDUSTRY:
case MP_OBJECT:
return false;