diff options
author | rubidium <rubidium@openttd.org> | 2011-11-04 10:18:13 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-04 10:18:13 +0000 |
commit | 7757a2ed406996be35c7179185f2e4e7cba37e12 (patch) | |
tree | ccf4b25e4efba9fee88cfb65ccabd68972c09400 /src/tunnel_map.cpp | |
parent | 47203dbeb5080a5d24131a61ec12d1d3164bcb42 (diff) | |
download | openttd-7757a2ed406996be35c7179185f2e4e7cba37e12.tar.xz |
(svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ functions if they return the Z in pixels (like TilePixelHeight)
Diffstat (limited to 'src/tunnel_map.cpp')
-rw-r--r-- | src/tunnel_map.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tunnel_map.cpp b/src/tunnel_map.cpp index 799b39000..2aac58424 100644 --- a/src/tunnel_map.cpp +++ b/src/tunnel_map.cpp @@ -23,7 +23,7 @@ TileIndex GetOtherTunnelEnd(TileIndex tile) { DiagDirection dir = GetTunnelBridgeDirection(tile); TileIndexDiff delta = TileOffsByDiagDir(dir); - uint z = GetTileZ(tile); + uint z = GetTilePixelZ(tile); dir = ReverseDiagDir(dir); do { @@ -31,7 +31,7 @@ TileIndex GetOtherTunnelEnd(TileIndex tile) } while ( !IsTunnelTile(tile) || GetTunnelBridgeDirection(tile) != dir || - GetTileZ(tile) != z + GetTilePixelZ(tile) != z ); return tile; @@ -53,7 +53,7 @@ bool IsTunnelInWayDir(TileIndex tile, uint z, DiagDirection dir) do { tile -= delta; if (!IsValidTile(tile)) return false; - height = GetTileZ(tile); + height = GetTilePixelZ(tile); } while (z < height); return z == height && IsTunnelTile(tile) && GetTunnelBridgeDirection(tile) == dir; |