Frees all the objects that are currently in use
| 1996 | |
| 1997 | // Frees all the objects that are currently in use |
| 1998 | void FreeAllObjects() { |
| 1999 | int objnum; |
| 2000 | |
| 2001 | for (objnum = 0; objnum <= Highest_object_index; objnum++) |
| 2002 | if (Objects[objnum].type != OBJ_NONE) { |
| 2003 | Objects[objnum].flags |= OF_SERVER_SAYS_DELETE; |
| 2004 | Objects[objnum].flags &= ~OF_INPLAYERINVENTORY; |
| 2005 | ObjDelete(objnum); |
| 2006 | } |
| 2007 | |
| 2008 | FreeAllVisEffects(); |
| 2009 | } |
| 2010 | |
| 2011 | // ------------------------------------------------------------------------------------------------------------------ |
| 2012 | void ObjDeleteDead() { |
no test coverage detected