forked from mirror/OpenTTD
(svn r23102) -Codechange: remove the remaining pointless multiplications by TILE_HEIGHT
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user