MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / FreeAllObjects

Function FreeAllObjects

Descent3/object.cpp:1998–2009  ·  view source on GitHub ↗

Frees all the objects that are currently in use

Source from the content-addressed store, hash-verified

1996
1997// Frees all the objects that are currently in use
1998void 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// ------------------------------------------------------------------------------------------------------------------
2012void ObjDeleteDead() {

Callers 3

CreateNewMineFunction · 0.85
FlushDataCacheFunction · 0.85
LoadLevelFunction · 0.85

Calls 2

ObjDeleteFunction · 0.85
FreeAllVisEffectsFunction · 0.85

Tested by

no test coverage detected