* Cleanup a burning object if timer stopped. */
| 1825 | * Cleanup a burning object if timer stopped. |
| 1826 | */ |
| 1827 | staticfn void |
| 1828 | cleanup_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 | |
| 1846 | void |
| 1847 | do_storms(void) |
nothing calls this directly
no test coverage detected