(svn r23102) -Codechange: remove the remaining pointless multiplications by TILE_HEIGHT

This commit is contained in:
rubidium
2011-11-04 10:31:46 +00:00
parent a8c4efcff4
commit 798f5a8608
7 changed files with 8 additions and 8 deletions

View File

@@ -48,7 +48,7 @@ static uint32 CanalGetVariable(const ResolverObject *object, byte variable, byte
switch (variable) {
/* Height of tile */
case 0x80: {
uint z = GetTilePixelZ(tile) / TILE_HEIGHT;
uint z = GetTileZ(tile);
/* Return consistent height within locks */
if (IsTileType(tile, MP_WATER) && IsLock(tile) && GetLockPart(tile) == LOCK_PART_UPPER) z--;
return z;