(svn r23092) -Codechange: create a non-pixel version of some of the Get*PixelZ functions, and let Get*PixelZ wrap around the new function (multiplying the Z by TILE_HEIGHT) just like TileHeight and TilePixelHeight
This commit is contained in:
@@ -89,7 +89,16 @@ TileIndex GetNorthernBridgeEnd(TileIndex t);
|
||||
TileIndex GetSouthernBridgeEnd(TileIndex t);
|
||||
TileIndex GetOtherBridgeEnd(TileIndex t);
|
||||
|
||||
uint GetBridgePixelHeight(TileIndex tile);
|
||||
uint GetBridgeHeight(TileIndex tile);
|
||||
/**
|
||||
* Get the height ('z') of a bridge in pixels.
|
||||
* @param tile the bridge ramp tile to get the bridge height from
|
||||
* @return the height of the bridge in pixels
|
||||
*/
|
||||
static inline uint GetBridgePixelHeight(TileIndex tile)
|
||||
{
|
||||
return GetBridgeHeight(tile) * TILE_HEIGHT;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the bridge over the given axis.
|
||||
|
Reference in New Issue
Block a user