1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-31 18:39:10 +00:00

(svn r14356) -Fix [FS#2307](r14258): converting of railtype was broken for tunnels and bridges

This commit is contained in:
smatz
2008-09-17 17:23:57 +00:00
parent a9d2b4b73c
commit deaa0725e9

View File

@@ -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));