# HG changeset patch # User rubidium # Date 2009-12-04 22:02:37 # Node ID ac8f3ac859fe95d10f70ba52260b9ca00338e024 # Parent d2b9ee4191cdc9edf230ac2dec98ccdc0bd738e7 (svn r18407) -Fix [FS#3338]: aqueducts were not influenced by the "long bridges" setting diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp --- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -241,6 +241,8 @@ CommandCost CmdBuildBridge(TileIndex end if (transport_type != TRANSPORT_WATER) { /* set and test bridge length, availability */ if (!CheckBridge_Stuff(bridge_type, bridge_len, flags)) return_cmd_error(STR_ERROR_CAN_T_BUILD_BRIDGE_HERE); + } else { + if (bridge_len > (_settings_game.construction.longbridges ? 100U : 16U)) return_cmd_error(STR_ERROR_CAN_T_BUILD_BRIDGE_HERE); } /* retrieve landscape height and ensure it's on land */