Mercurial > hg > openttd
changeset 13878:2e31d7cf0578 draft
(svn r18407) -Fix [FS#3338]: aqueducts were not influenced by the "long bridges" setting
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 04 Dec 2009 22:02:37 +0000 |
parents | 798f34f56934 |
children | 1501e8e0b705 |
files | src/tunnelbridge_cmd.cpp |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -241,6 +241,8 @@ 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 */