diff options
author | rubidium <rubidium@openttd.org> | 2011-11-04 10:25:58 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-04 10:25:58 +0000 |
commit | 69162621d81c82b832cccc8d59179fc0e4472af2 (patch) | |
tree | 84b0875823153321225331b2a4a5862a60fdc345 /src/tunnelbridge_cmd.cpp | |
parent | b167c0a3967a62b4cbe98a12f2c4d932ee8df510 (diff) | |
download | openttd-69162621d81c82b832cccc8d59179fc0e4472af2.tar.xz |
(svn r23096) -Codechange: remove useless divisions and multiplications by TILE_HEIGHT for the snow line code
Diffstat (limited to 'src/tunnelbridge_cmd.cpp')
-rw-r--r-- | src/tunnelbridge_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp index 700151560..e9e221bd0 100644 --- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -1457,7 +1457,7 @@ static void TileLoop_TunnelBridge(TileIndex tile) /* As long as we do not have a snow density, we want to use the density * from the entry endge. For tunnels this is the lowest point for bridges the highest point. * (Independent of foundations) */ - uint z = IsBridge(tile) ? GetTileMaxPixelZ(tile) : GetTilePixelZ(tile); + uint z = IsBridge(tile) ? GetTileMaxZ(tile) : GetTileZ(tile); if (snow_or_desert != (z > GetSnowLine())) { SetTunnelBridgeSnowOrDesert(tile, !snow_or_desert); MarkTileDirtyByTile(tile); |