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

Function SetTileHeight

src/tile_map.h:57–62  ·  view source on GitHub ↗

* Sets the height of a tile. * * This function sets the height of the northern corner of a tile. * * @param tile The tile to change the height * @param height The new height value of the tile * @pre tile < Map::Size() * @pre height <= MAX_TILE_HEIGHT */

Source from the content-addressed store, hash-verified

55 * @pre height <= MAX_TILE_HEIGHT
56 */
57inline void SetTileHeight(Tile tile, uint height)
58{
59 assert(tile < Map::Size());
60 assert(height <= MAX_TILE_HEIGHT);
61 tile.height() = height;
62}
63
64/**
65 * Returns the height of a tile in pixels.

Callers 9

MakeVoidFunction · 0.85
InitializeLandscapeFunction · 0.85
GenerateTerrainFunction · 0.85
CmdTerraformLandFunction · 0.85
GreyscaleToMapHeightsFunction · 0.85
FixSlopesFunction · 0.85
FlatEmptyWorldFunction · 0.85
UpdateFreeformEdgesFunction · 0.85
TgenSetTileHeightFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected