frees up an object. Generally, ObjDelete() should be called to get rid of an object. This function deallocates the object entry after the object has been unlinked
| 1640 | // rid of an object. This function deallocates the object entry after |
| 1641 | // the object has been unlinked |
| 1642 | void ObjFree(int objnum) { |
| 1643 | ObjFreePositionHistory(&Objects[objnum]); |
| 1644 | |
| 1645 | free_obj_list[--Num_objects] = objnum; |
| 1646 | ASSERT(Num_objects >= 0); |
| 1647 | |
| 1648 | if (objnum == Highest_object_index) |
| 1649 | while (Objects[--Highest_object_index].type == OBJ_NONE) |
| 1650 | ; |
| 1651 | } |
| 1652 | |
| 1653 | void ObjSetAABB(object *obj) { |
| 1654 | vector object_rad; |
no test coverage detected