diff options
author | rubidium <rubidium@openttd.org> | 2011-11-04 10:30:10 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-04 10:30:10 +0000 |
commit | 1dc685aeea202f1677f915d390dc13ce3e18c462 (patch) | |
tree | 2cacacd88d133fa3bbbe11c706dcf21f841898d0 /src/industry_cmd.cpp | |
parent | 0b6dbaf6645644be09d101b15806a13479610fda (diff) | |
download | openttd-1dc685aeea202f1677f915d390dc13ce3e18c462.tar.xz |
(svn r23100) -Codechange: remove pointless multiplications by TILE_HEIGHT for the terraform code
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r-- | src/industry_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 2350ab3d3..4fdc306d4 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -2726,7 +2726,7 @@ static CommandCost TerraformTile_Industry(TileIndex tile, DoCommandFlag flags, u */ Slope tileh_old = GetTileSlope(tile); /* TileMaxZ must not be changed. Slopes must not be steep. */ - if (!IsSteepSlope(tileh_old) && !IsSteepSlope(tileh_new) && (GetTileMaxPixelZ(tile) == z_new + GetSlopeMaxPixelZ(tileh_new))) { + if (!IsSteepSlope(tileh_old) && !IsSteepSlope(tileh_new) && (GetTileMaxZ(tile) == z_new + GetSlopeMaxZ(tileh_new))) { const IndustryGfx gfx = GetIndustryGfx(tile); const IndustryTileSpec *itspec = GetIndustryTileSpec(gfx); |