forked from mirror/OpenTTD
(svn r24413) -Add [FS#5221-ish]: Allow overbuilding bridges with the same type when adding a roadtype.
This commit is contained in:
@@ -319,7 +319,7 @@ CommandCost CmdBuildBridge(TileIndex end_tile, DoCommandFlag flags, uint32 p1, u
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Do not replace the bridge with the same bridge type. */
|
/* Do not replace the bridge with the same bridge type. */
|
||||||
if (!(flags & DC_QUERY_COST) && bridge_type == GetBridgeType(tile_start)) {
|
if (!(flags & DC_QUERY_COST) && (bridge_type == GetBridgeType(tile_start)) && (transport_type != TRANSPORT_ROAD || (roadtypes & ~GetRoadTypes(tile_start)) == 0)) {
|
||||||
return_cmd_error(STR_ERROR_ALREADY_BUILT);
|
return_cmd_error(STR_ERROR_ALREADY_BUILT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user