MCPcopy Index your code
hub / github.com/NetHack/NetHack / cleanup_burn

Function cleanup_burn

src/timeout.c:1827–1844  ·  view source on GitHub ↗

* Cleanup a burning object if timer stopped. */

Source from the content-addressed store, hash-verified

1825 * Cleanup a burning object if timer stopped.
1826 */
1827staticfn void
1828cleanup_burn(anything *arg, long expire_time)
1829{
1830 struct obj *obj = arg->a_obj;
1831
1832 if (!obj->lamplit) {
1833 impossible("cleanup_burn: obj %s not lit", xname(obj));
1834 return;
1835 }
1836
1837 del_light_source(LS_OBJECT, obj_to_any(obj));
1838 /* restore unused time */
1839 obj->age += expire_time - svm.moves;
1840 obj->lamplit = 0;
1841
1842 if (obj->where == OBJ_INVENT)
1843 update_inventory();
1844}
1845
1846void
1847do_storms(void)

Callers

nothing calls this directly

Calls 5

xnameFunction · 0.85
del_light_sourceFunction · 0.85
obj_to_anyFunction · 0.85
update_inventoryFunction · 0.85
impossibleFunction · 0.70

Tested by

no test coverage detected