(svn r18407) -Fix [FS#3338]: aqueducts were not influenced by the "long bridges" setting

This commit is contained in:
rubidium 2009-12-04 22:02:37 +00:00
parent bc876098f7
commit 4047c142eb
1 changed files with 2 additions and 0 deletions

View File

@ -241,6 +241,8 @@ CommandCost CmdBuildBridge(TileIndex end_tile, DoCommandFlag flags, uint32 p1, u
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 */