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

Function ReallyClearObjectTile

src/object_cmd.cpp:513–522  ·  view source on GitHub ↗

* Perform the actual removal of the object from the map. * @param o The object to really clear. */

Source from the content-addressed store, hash-verified

511 * @param o The object to really clear.
512 */
513static void ReallyClearObjectTile(Object *o)
514{
515 Object::DecTypeCount(o->type);
516 for (TileIndex tile_cur : o->location) {
517 DeleteNewGRFInspectWindow(GSF_OBJECTS, tile_cur.base());
518
519 MakeWaterKeepingClass(tile_cur, GetTileOwner(tile_cur));
520 }
521 delete o;
522}
523
524std::vector<ClearedObjectArea> _cleared_object_areas;
525

Callers 2

ClearTile_ObjectFunction · 0.85
ChangeTileOwner_ObjectFunction · 0.85

Calls 4

MakeWaterKeepingClassFunction · 0.85
GetTileOwnerFunction · 0.85
baseMethod · 0.45

Tested by

no test coverage detected