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:
@@ -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));
|
||||
|
Reference in New Issue
Block a user