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

Function MakeVoid

src/void_map.h:19–31  ·  view source on GitHub ↗

* Make a nice void tile ;) * @param t the tile to make void */

Source from the content-addressed store, hash-verified

17 * @param t the tile to make void
18 */
19inline void MakeVoid(Tile t)
20{
21 SetTileType(t, MP_VOID);
22 SetTileHeight(t, 0);
23 t.m1() = 0;
24 t.m2() = 0;
25 t.m3() = 0;
26 t.m4() = 0;
27 t.m5() = 0;
28 t.m6() = 0;
29 t.m7() = 0;
30 t.m8() = 0;
31}
32
33#endif /* VOID_MAP_H */

Callers 7

InitializeLandscapeFunction · 0.85
GenerateLandscapeFunction · 0.85
GreyscaleToMapHeightsFunction · 0.85
_GenerateWorldFunction · 0.85
UpdateFreeformEdgesFunction · 0.85
GenerateTerrainPerlinFunction · 0.85
UpdateVoidTilesFunction · 0.85

Calls 2

SetTileTypeFunction · 0.85
SetTileHeightFunction · 0.85

Tested by

no test coverage detected