summaryrefslogtreecommitdiff
path: root/tunnelbridge_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-17 13:28:50 +0000
committertron <tron@openttd.org>2006-03-17 13:28:50 +0000
commitdacbf1a4330e5b5a58cfe89b35a67107245510b3 (patch)
tree1d5162c6a5c1305673ecacf3e51dde37400a9d8d /tunnelbridge_cmd.c
parent89090790c2405a738f5977310549cf94df9c06cb (diff)
downloadopenttd-dacbf1a4330e5b5a58cfe89b35a67107245510b3.tar.xz
(svn r3922) Fix copy&pasto in r3916 (Slowly it's getting a bad habit)
Diffstat (limited to 'tunnelbridge_cmd.c')
-rw-r--r--tunnelbridge_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c
index 58b72bf2a..0095fca85 100644
--- a/tunnelbridge_cmd.c
+++ b/tunnelbridge_cmd.c
@@ -672,7 +672,7 @@ static int32 DoClearBridge(TileIndex tile, uint32 flags)
for (c = tile + delta; c != endtile; c += delta) {
if (IsTransportUnderBridge(c)) {
if (GetTransportTypeUnderBridge(c) == TRANSPORT_RAIL) {
- MakeRailNormal(c, GetTileOwner(c), GetRailBitsUnderBridge(c), GetRailType(tile));
+ MakeRailNormal(c, GetTileOwner(c), GetRailBitsUnderBridge(c), GetRailType(c));
} else {
uint town = IsTileOwner(c, OWNER_TOWN) ? ClosestTownFromTile(c, (uint)-1)->index : 0;
MakeRoadNormal(c, GetTileOwner(c), GetRoadBitsUnderBridge(c), town);