summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2015-06-20 12:55:17 +0000
committerfrosch <frosch@openttd.org>2015-06-20 12:55:17 +0000
commitab69952f2abb114381900a479ece2f7b7fc92910 (patch)
tree4e4c135ae4568cd906eba0fd2e058b16ff30d6e3 /src
parent0e378747db60f8ab0f90cf8b2d107ec4ba602276 (diff)
downloadopenttd-ab69952f2abb114381900a479ece2f7b7fc92910.tar.xz
(svn r27306) -Fix (r27305): Confused tiles.
Diffstat (limited to 'src')
-rw-r--r--src/town_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index 5baaa64d3..ea44603b0 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -1318,10 +1318,10 @@ static bool CanFollowRoad(TileIndex tile, DiagDirection dir)
return target_rb != ROAD_NONE;
case MP_STATION:
- return IsDriveThroughStopTile(tile);
+ return IsDriveThroughStopTile(target_tile);
case MP_TUNNELBRIDGE:
- return GetTunnelBridgeTransportType(tile) == TRANSPORT_ROAD;
+ return GetTunnelBridgeTransportType(target_tile) == TRANSPORT_ROAD;
case MP_HOUSE:
case MP_INDUSTRY: