(svn r23098) -Codechange: remove pointless multiplications by TILE_HEIGHT from the tunnel code

This commit is contained in:
rubidium
2011-11-04 10:28:31 +00:00
parent d0689c2924
commit f0f17a77ba
3 changed files with 7 additions and 7 deletions

View File

@@ -316,7 +316,7 @@ CommandCost CmdTerraformLand(TileIndex tile, DoCommandFlag flags, uint32 p1, uin
return_cmd_error(STR_ERROR_MUST_DEMOLISH_BRIDGE_FIRST);
}
/* Check if tunnel would take damage */
if (direction == -1 && IsTunnelInWay(tile, z_min * TILE_HEIGHT)) {
if (direction == -1 && IsTunnelInWay(tile, z_min)) {
_terraform_err_tile = tile; // highlight the tile above the tunnel
return_cmd_error(STR_ERROR_EXCAVATION_WOULD_DAMAGE);
}