* Returns the height of a tile, 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 the same unit as TileHeight. */
| 40 | * @return The height in the same unit as TileHeight. |
| 41 | */ |
| 42 | inline uint TileHeightOutsideMap(int x, int y) |
| 43 | { |
| 44 | return TileHeight(TileXY(Clamp(x, 0, Map::MaxX()), Clamp(y, 0, Map::MaxY()))); |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * Sets the height of a tile. |
no test coverage detected