MCPcopy Create free account
hub / github.com/DFHack/dfhack / cancelMelting

Method cancelMelting

library/modules/Items.cpp:2035–2042  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2033}
2034
2035bool Items::cancelMelting(df::item *item) {
2036 CHECK_NULL_POINTER(item);
2037 if (!item->flags.bits.melt)
2038 return false;
2039 erase_from_vector(world->items.other.ANY_MELT_DESIGNATED, &df::item::id, item->id);
2040 item->flags.bits.melt = false;
2041 return true;
2042}
2043
2044bool Items::isRouteVehicle(df::item *item) {
2045 CHECK_NULL_POINTER(item);

Callers

nothing calls this directly

Calls 1

erase_from_vectorFunction · 0.85

Tested by

no test coverage detected