Mercurial > hg > openttd
changeset 9492:d68dd1843f67 draft
(svn r13468) -Fix: make aqueducts a little more expensive than normal bridges and disable terraforming of aqueduct bridgeheads; one can't terraform normal canal tiles either.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 11 Jun 2008 14:51:31 +0000 |
parents | 0e0d227a56f8 |
children | 83bad4f336b3 |
files | src/tunnelbridge_cmd.cpp |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -456,6 +456,9 @@ bridge_len = CalcBridgeLenCostFactor(bridge_len); cost.AddCost((int64)bridge_len * _price.build_bridge * GetBridgeSpec(bridge_type)->price >> 8); + + /* Aqueducts are a little more expensive. */ + if (transport_type == TRANSPORT_WATER) cost.AddCost((int64)bridge_len * _price.clear_water); } return cost; @@ -1429,7 +1432,7 @@ static CommandCost TerraformTile_TunnelBridge(TileIndex tile, uint32 flags, uint z_new, Slope tileh_new) { - if (_settings_game.construction.build_on_slopes && AutoslopeEnabled() && IsBridge(tile)) { + if (_settings_game.construction.build_on_slopes && AutoslopeEnabled() && IsBridge(tile) && GetTunnelBridgeTransportType(tile) != TRANSPORT_WATER) { DiagDirection direction = GetTunnelBridgeDirection(tile); Axis axis = DiagDirToAxis(direction); CommandCost res;