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

Function GetSlopePixelZ_Water

src/water_cmd.cpp:988–993  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

986
987
988static int GetSlopePixelZ_Water(TileIndex tile, uint x, uint y, bool)
989{
990 auto [tileh, z] = GetTilePixelSlope(tile);
991
992 return z + GetPartialPixelZ(x & 0xF, y & 0xF, tileh);
993}
994
995static Foundation GetFoundation_Water(TileIndex, Slope)
996{

Callers

nothing calls this directly

Calls 2

GetTilePixelSlopeFunction · 0.85
GetPartialPixelZFunction · 0.85

Tested by

no test coverage detected