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

Function GetFoundation_Object

src/object_cmd.cpp:503–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501}
502
503static Foundation GetFoundation_Object(TileIndex tile, Slope tileh)
504{
505 const ObjectSpec *spec = ObjectSpec::Get(GetObjectType(tile));
506 return spec->IsEnabled() && spec->flags.Test(ObjectFlag::HasNoFoundation) ? FOUNDATION_NONE : FlatteningFoundation(tileh);
507}
508
509/**
510 * Perform the actual removal of the object from the map.

Callers 1

DrawTile_ObjectFunction · 0.85

Calls 4

GetObjectTypeFunction · 0.85
FlatteningFoundationFunction · 0.85
TestMethod · 0.80
IsEnabledMethod · 0.45

Tested by

no test coverage detected