diff options
author | Johannes E. Krause <j.k@eclipso.de> | 2019-01-13 20:49:44 +0100 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-01-24 21:17:17 +0100 |
commit | 43852baace470938c71147d9029b4679d62a05a8 (patch) | |
tree | e48c260c1758af8be6ab5fdab5658e691b3e0f38 /src | |
parent | b934cdf0ab1ea24b301a43cadf0be924f0c5ae37 (diff) | |
download | openttd-43852baace470938c71147d9029b4679d62a05a8.tar.xz |
Codechange: Remove unused GetTilePixelZOutsideMap and GetTileMaxPixelZOutsideMap functions (Patch by adf88, #6583)
Diffstat (limited to 'src')
-rw-r--r-- | src/tile_map.cpp | 36 | ||||
-rw-r--r-- | src/tile_map.h | 5 |
2 files changed, 0 insertions, 41 deletions
diff --git a/src/tile_map.cpp b/src/tile_map.cpp index d73beeb88..05b0ea194 100644 --- a/src/tile_map.cpp +++ b/src/tile_map.cpp @@ -193,23 +193,6 @@ int GetTileZ(TileIndex tile) } /** - * 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 * @return Maximum height of the tile @@ -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; -} diff --git a/src/tile_map.h b/src/tile_map.h index 89f532e4f..3fad368cd 100644 --- a/src/tile_map.h +++ b/src/tile_map.h @@ -289,8 +289,6 @@ static inline int GetTilePixelZ(TileIndex tile) return GetTileZ(tile) * TILE_HEIGHT; } -int GetTilePixelZOutsideMap(int x, int y); - /** * Get top height of the tile * @param tile Tile to compute height of @@ -301,9 +299,6 @@ static inline int GetTileMaxPixelZ(TileIndex tile) return GetTileMaxZ(tile) * TILE_HEIGHT; } -int GetTileMaxPixelZOutsideMap(int x, int y); - - /** * Calculate a hash value from a tile position * |