diff options
author | rubidium <rubidium@openttd.org> | 2011-11-04 10:28:20 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-04 10:28:20 +0000 |
commit | d0689c2924bd0c8793a61dfc9407673b1810d051 (patch) | |
tree | f9ff14ce87a9de6e9cbd4bfe89867096fd13c507 /src/terraform_cmd.cpp | |
parent | 69162621d81c82b832cccc8d59179fc0e4472af2 (diff) | |
download | openttd-d0689c2924bd0c8793a61dfc9407673b1810d051.tar.xz |
(svn r23097) -Codechange: remove pointless multiplications by TILE_HEIGHT from the bridge code
Diffstat (limited to 'src/terraform_cmd.cpp')
-rw-r--r-- | src/terraform_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/terraform_cmd.cpp b/src/terraform_cmd.cpp index 47a2326b2..1f2847512 100644 --- a/src/terraform_cmd.cpp +++ b/src/terraform_cmd.cpp @@ -311,7 +311,7 @@ CommandCost CmdTerraformLand(TileIndex tile, DoCommandFlag flags, uint32 p1, uin if (pass == 0) { /* Check if bridge would take damage */ if (direction == 1 && MayHaveBridgeAbove(tile) && IsBridgeAbove(tile) && - GetBridgePixelHeight(GetSouthernBridgeEnd(tile)) <= z_max * TILE_HEIGHT) { + GetBridgeHeight(GetSouthernBridgeEnd(tile)) <= z_max) { _terraform_err_tile = tile; // highlight the tile under the bridge return_cmd_error(STR_ERROR_MUST_DEMOLISH_BRIDGE_FIRST); } |