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

Function TgenSetTileHeight

src/tgp.cpp:962–970  ·  view source on GitHub ↗

A small helper function to initialize the terrain */

Source from the content-addressed store, hash-verified

960
961/** A small helper function to initialize the terrain */
962static void TgenSetTileHeight(TileIndex tile, int height)
963{
964 SetTileHeight(tile, height);
965
966 /* Only clear the tiles within the map area. */
967 if (IsInnerTile(tile)) {
968 MakeClear(tile, CLEAR_GRASS, 3);
969 }
970}
971
972/**
973 * The main new land generator using Perlin noise. Desert landscape is handled

Callers 1

GenerateTerrainPerlinFunction · 0.85

Calls 3

SetTileHeightFunction · 0.85
IsInnerTileFunction · 0.85
MakeClearFunction · 0.85

Tested by

no test coverage detected