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

Function GetSlopePixelZ_Object

src/object_cmd.cpp:492–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490}
491
492static int GetSlopePixelZ_Object(TileIndex tile, uint x, uint y, bool)
493{
494 if (IsObjectType(tile, OBJECT_OWNED_LAND)) {
495 auto [tileh, z] = GetTilePixelSlope(tile);
496
497 return z + GetPartialPixelZ(x & 0xF, y & 0xF, tileh);
498 } else {
499 return GetTileMaxPixelZ(tile);
500 }
501}
502
503static Foundation GetFoundation_Object(TileIndex tile, Slope tileh)
504{

Callers

nothing calls this directly

Calls 4

IsObjectTypeFunction · 0.85
GetTilePixelSlopeFunction · 0.85
GetPartialPixelZFunction · 0.85
GetTileMaxPixelZFunction · 0.85

Tested by

no test coverage detected