mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r24413) -Add [FS#5221-ish]: Allow overbuilding bridges with the same type when adding a roadtype.
This commit is contained in:
parent
f645c15586
commit
25203976f0
|
@ -319,7 +319,7 @@ CommandCost CmdBuildBridge(TileIndex end_tile, DoCommandFlag flags, uint32 p1, u
|
|||
}
|
||||
|
||||
/* 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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue