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

Method GetComplementSlope

src/script/api/script_tile.cpp:184–189  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

182}
183
184/* static */ ScriptTile::Slope ScriptTile::GetComplementSlope(Slope slope)
185{
186 if ((slope & ~SLOPE_ELEVATED) != 0) return SLOPE_INVALID;
187
188 return (Slope)::ComplementSlope((::Slope)slope);
189}
190
191/* static */ SQInteger ScriptTile::GetMinHeight(TileIndex tile)
192{

Callers

nothing calls this directly

Calls 1

ComplementSlopeFunction · 0.85

Tested by

no test coverage detected