Do not build bridges with additional specs

Prior to this change, additional bridge sets like modular bridges would be used.
Those might not be suitable for public roads. Those bridges should be left to the player.
This commit is contained in:
Andreas Schmitt
2021-06-17 03:23:27 +02:00
committed by Jonathan G Rennison
parent 198ef11a2b
commit a73cb99695

View File

@@ -461,7 +461,7 @@ static TileIndex BuildBridge(PathNode *current, TileIndex end_tile = INVALID_TIL
std::vector<BridgeType> available_bridge_types;
for (uint i = 0; i < MAX_BRIDGES; ++i) {
for (uint i = 0; i < 13; ++i) {
if (CheckBridgeAvailability(i, GetTunnelBridgeLength(start_tile, end_tile)).Succeeded()) {
available_bridge_types.push_back(i);
}
@@ -522,7 +522,7 @@ static TileIndex BuildRiverBridge(PathNode *current, const DiagDirection road_di
std::vector<BridgeType> available_bridge_types;
for (uint i = 0; i < MAX_BRIDGES; ++i) {
for (uint i = 0; i < 13; ++i) {
if (CheckBridgeAvailability(i, GetTunnelBridgeLength(start_tile, end_tile)).Succeeded()) {
available_bridge_types.push_back(i);
}