summaryrefslogtreecommitdiff
path: root/src/bridge_map.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-04 10:18:13 +0000
committerrubidium <rubidium@openttd.org>2011-11-04 10:18:13 +0000
commit7757a2ed406996be35c7179185f2e4e7cba37e12 (patch)
treeccf4b25e4efba9fee88cfb65ccabd68972c09400 /src/bridge_map.cpp
parent47203dbeb5080a5d24131a61ec12d1d3164bcb42 (diff)
downloadopenttd-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/bridge_map.cpp')
-rw-r--r--src/bridge_map.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bridge_map.cpp b/src/bridge_map.cpp
index c89af44d5..37f4166c3 100644
--- a/src/bridge_map.cpp
+++ b/src/bridge_map.cpp
@@ -67,12 +67,12 @@ TileIndex GetOtherBridgeEnd(TileIndex tile)
* @param tile the bridge ramp tile to get the bridge height from
* @return the height of the bridge in pixels
*/
-uint GetBridgeHeight(TileIndex t)
+uint GetBridgePixelHeight(TileIndex t)
{
uint h;
- Slope tileh = GetTileSlope(t, &h);
+ Slope tileh = GetTilePixelSlope(t, &h);
Foundation f = GetBridgeFoundation(tileh, DiagDirToAxis(GetTunnelBridgeDirection(t)));
/* one height level extra for the ramp */
- return h + TILE_HEIGHT + ApplyFoundationToSlope(f, &tileh);
+ return h + TILE_HEIGHT + ApplyPixelFoundationToSlope(f, &tileh);
}