summaryrefslogtreecommitdiff
path: root/src/tunnelbridge_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-04 10:30:10 +0000
committerrubidium <rubidium@openttd.org>2011-11-04 10:30:10 +0000
commit1dc685aeea202f1677f915d390dc13ce3e18c462 (patch)
tree2cacacd88d133fa3bbbe11c706dcf21f841898d0 /src/tunnelbridge_cmd.cpp
parent0b6dbaf6645644be09d101b15806a13479610fda (diff)
downloadopenttd-1dc685aeea202f1677f915d390dc13ce3e18c462.tar.xz
(svn r23100) -Codechange: remove pointless multiplications by TILE_HEIGHT for the terraform code
Diffstat (limited to 'src/tunnelbridge_cmd.cpp')
-rw-r--r--src/tunnelbridge_cmd.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp
index 104aadc09..d07603f16 100644
--- a/src/tunnelbridge_cmd.cpp
+++ b/src/tunnelbridge_cmd.cpp
@@ -1676,8 +1676,6 @@ static VehicleEnterTileStatus VehicleEnter_TunnelBridge(Vehicle *v, TileIndex ti
static CommandCost TerraformTile_TunnelBridge(TileIndex tile, DoCommandFlag flags, uint z_new, Slope tileh_new)
{
if (_settings_game.construction.build_on_slopes && AutoslopeEnabled() && IsBridge(tile) && GetTunnelBridgeTransportType(tile) != TRANSPORT_WATER) {
- z_new /= TILE_HEIGHT;
-
DiagDirection direction = GetTunnelBridgeDirection(tile);
Axis axis = DiagDirToAxis(direction);
CommandCost res;