MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / TilePixelHeightOutsideMap

Function TilePixelHeightOutsideMap

src/tile_map.h:84–87  ·  view source on GitHub ↗

* Returns the height of a tile in pixels, also for tiles outside the map (virtual "black" tiles). * * @param x X coordinate of the tile, may be outside the map. * @param y Y coordinate of the tile, may be outside the map. * @return The height in pixels in the same unit as TilePixelHeight. */

Source from the content-addressed store, hash-verified

82 * @return The height in pixels in the same unit as TilePixelHeight.
83 */
84inline uint TilePixelHeightOutsideMap(int x, int y)
85{
86 return TileHeightOutsideMap(x, y) * TILE_HEIGHT;
87}
88
89/**
90 * Get the tiletype of a given tile.

Callers 1

GetViewportYFunction · 0.85

Calls 1

TileHeightOutsideMapFunction · 0.85

Tested by

no test coverage detected