From 25203976f0605eef25ae0ac9b9a594b951957be2 Mon Sep 17 00:00:00 2001 From: frosch Date: Wed, 18 Jul 2012 19:24:13 +0000 Subject: [PATCH] (svn r24413) -Add [FS#5221-ish]: Allow overbuilding bridges with the same type when adding a roadtype. --- src/tunnelbridge_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp index 1fd812134e..3a53bb8c25 100644 --- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -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); }