Codechange: Remove unused GetTilePixelZOutsideMap and GetTileMaxPixelZOutsideMap functions (Patch by adf88, #6583)
This commit is contained in:

committed by
Niels Martin Hansen

parent
b934cdf0ab
commit
43852baace
@@ -192,23 +192,6 @@ int GetTileZ(TileIndex tile)
|
||||
return h;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bottom height of the tile outside map.
|
||||
*
|
||||
* @param x X-coordinate of the tile outside to compute height of.
|
||||
* @param y Y-coordinate of the tile outside to compute height of.
|
||||
* @return Minimum height of the tile outside the map.
|
||||
*/
|
||||
int GetTilePixelZOutsideMap(int x, int y)
|
||||
{
|
||||
uint h = TileHeightOutsideMap(x, y); // N corner.
|
||||
h = min(h, TileHeightOutsideMap(x + 1, y)); // W corner.
|
||||
h = min(h, TileHeightOutsideMap(x, y + 1)); // E corner.
|
||||
h = min(h, TileHeightOutsideMap(x + 1, y + 1)); // S corner
|
||||
|
||||
return h * TILE_HEIGHT;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get top height of the tile inside the map.
|
||||
* @param t Tile to compute height of
|
||||
@@ -225,22 +208,3 @@ int GetTileMaxZ(TileIndex t)
|
||||
|
||||
return h;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get top height of the tile outside the map.
|
||||
*
|
||||
* @see Detailed description in header.
|
||||
*
|
||||
* @param x X-coordinate of the tile outside to compute height of.
|
||||
* @param y Y-coordinate of the tile outside to compute height of.
|
||||
* @return Maximum height of the tile.
|
||||
*/
|
||||
int GetTileMaxPixelZOutsideMap(int x, int y)
|
||||
{
|
||||
uint h = TileHeightOutsideMap(x, y);
|
||||
h = max(h, TileHeightOutsideMap(x + 1, y));
|
||||
h = max(h, TileHeightOutsideMap(x, y + 1));
|
||||
h = max(h, TileHeightOutsideMap(x + 1, y + 1));
|
||||
|
||||
return h * TILE_HEIGHT;
|
||||
}
|
||||
|
Reference in New Issue
Block a user