summaryrefslogtreecommitdiff
path: root/src/autoslope.h
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/autoslope.h
parent0b6dbaf6645644be09d101b15806a13479610fda (diff)
downloadopenttd-1dc685aeea202f1677f915d390dc13ce3e18c462.tar.xz
(svn r23100) -Codechange: remove pointless multiplications by TILE_HEIGHT for the terraform code
Diffstat (limited to 'src/autoslope.h')
-rw-r--r--src/autoslope.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/autoslope.h b/src/autoslope.h
index 845b5c7cc..e9bfa140f 100644
--- a/src/autoslope.h
+++ b/src/autoslope.h
@@ -33,7 +33,7 @@
*/
static inline bool AutoslopeCheckForEntranceEdge(TileIndex tile, uint z_new, Slope tileh_new, DiagDirection entrance)
{
- if (GetTileMaxPixelZ(tile) != z_new + GetSlopeMaxPixelZ(tileh_new)) return false;
+ if (GetTileMaxZ(tile) != z_new + GetSlopeMaxZ(tileh_new)) return false;
return ((tileh_new == SLOPE_FLAT) || CanBuildDepotByTileh(entrance, tileh_new));
}