From a73cb9969560ab9336bb553647eaf4656013ab95 Mon Sep 17 00:00:00 2001 From: Andreas Schmitt Date: Thu, 17 Jun 2021 03:23:27 +0200 Subject: [PATCH] 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. --- src/road.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/road.cpp b/src/road.cpp index 73397c0aa4..b8fad7a926 100644 --- a/src/road.cpp +++ b/src/road.cpp @@ -461,7 +461,7 @@ static TileIndex BuildBridge(PathNode *current, TileIndex end_tile = INVALID_TIL std::vector 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 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); }