(svn r20237) -Fix (r20049): Check for disallowed level crossings also when converting rail.
This commit is contained in:
@@ -1417,6 +1417,10 @@ CommandCost CmdConvertRail(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
|
|||||||
break;
|
break;
|
||||||
case MP_ROAD:
|
case MP_ROAD:
|
||||||
if (!IsLevelCrossing(tile)) continue;
|
if (!IsLevelCrossing(tile)) continue;
|
||||||
|
if (RailNoLevelCrossings(totype)) {
|
||||||
|
error.MakeError(STR_ERROR_CROSSING_DISALLOWED);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case MP_TUNNELBRIDGE:
|
case MP_TUNNELBRIDGE:
|
||||||
if (GetTunnelBridgeTransportType(tile) != TRANSPORT_RAIL) continue;
|
if (GetTunnelBridgeTransportType(tile) != TRANSPORT_RAIL) continue;
|
||||||
|
Reference in New Issue
Block a user