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

Function GetSlopePixelZ_Void

src/void_cmd.cpp:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32
33static int GetSlopePixelZ_Void(TileIndex, uint x, uint y, bool)
34{
35 /* This function may be called on tiles outside the map, don't assume
36 * that 'tile' is a valid tile index. See GetSlopePixelZOutsideMap. */
37 auto [tileh, z] = GetTilePixelSlopeOutsideMap(x >> 4, y >> 4);
38
39 return z + GetPartialPixelZ(x & 0xF, y & 0xF, tileh);
40}
41
42static Foundation GetFoundation_Void(TileIndex, Slope)
43{

Callers

nothing calls this directly

Calls 2

GetPartialPixelZFunction · 0.85

Tested by

no test coverage detected