summaryrefslogtreecommitdiff
path: root/src/town_cmd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-01-04 19:45:29 +0000
committersmatz <smatz@openttd.org>2008-01-04 19:45:29 +0000
commit7302d8c88b25e08a414ebf4e8e83abffc1c3961a (patch)
tree9a2deee8e62f246ba97175135518232409950b73 /src/town_cmd.cpp
parent9299f76af42eb4c8ca8d7077fc60f87c2d962047 (diff)
downloadopenttd-7302d8c88b25e08a414ebf4e8e83abffc1c3961a.tar.xz
(svn r11760) -Codechange: unify the way how other end of a tunnel/bridge is determined at some places
-Fix: adding road/tram to tram/road bridge was cheaper by one tile
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r--src/town_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index 9abf01875..8d9e6863c 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -1062,7 +1062,7 @@ static void GrowTownInTile(TileIndex *tile_ptr, RoadBits cur_rb, DiagDirection t
/* Reached a tunnel/bridge? Then continue at the other side of it. */
if (IsTileType(tile, MP_TUNNELBRIDGE)) {
if (GetTunnelBridgeTransportType(tile) == TRANSPORT_ROAD) {
- *tile_ptr = IsTunnel(tile) ? GetOtherTunnelEnd(tile) : GetOtherBridgeEnd(tile);
+ *tile_ptr = GetOtherTunnelBridgeEnd(tile);
}
return;
}