summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-09-17 17:23:57 +0000
committersmatz <smatz@openttd.org>2008-09-17 17:23:57 +0000
commitdeaa0725e9e000b35614320ed2ef456c071ae99e (patch)
treedf559cdea28d1bcf8457b4d1d27b1f21fbec32c6 /src
parenta9d2b4b73c077b5d92eb9d53e247d19dc28e901e (diff)
downloadopenttd-deaa0725e9e000b35614320ed2ef456c071ae99e.tar.xz
(svn r14356) -Fix [FS#2307](r14258): converting of railtype was broken for tunnels and bridges
Diffstat (limited to 'src')
-rw-r--r--src/rail_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp
index 0b4ddb197..81c81640a 100644
--- a/src/rail_cmd.cpp
+++ b/src/rail_cmd.cpp
@@ -1384,7 +1384,7 @@ CommandCost CmdConvertRail(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
/* When not coverting rail <-> el. rail, any vehicle cannot be in tunnel/bridge */
if (!IsCompatibleRail(GetRailType(tile), totype) &&
- !HasVehicleOnTunnelBridge(tile, endtile)) continue;
+ HasVehicleOnTunnelBridge(tile, endtile)) continue;
if (flags & DC_EXEC) {
Track track = DiagDirToDiagTrack(GetTunnelBridgeDirection(tile));