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

Function ClearViewerObjects

Descent3/gamesequence.cpp:1437–1446  ·  view source on GitHub ↗

Get rid of any viewer objects in the level

Source from the content-addressed store, hash-verified

1435
1436// Get rid of any viewer objects in the level
1437void ClearViewerObjects() {
1438 int i;
1439 object *objp;
1440
1441 for (i = 0, objp = Objects; i <= Highest_object_index; i++, objp++)
1442 if (objp->type == OBJ_VIEWER) {
1443 mprintf(0, "Deleting viewer object %d\n", i);
1444 ObjDelete(i);
1445 }
1446}
1447
1448// If low or medium detail, delete all or some ambient objects
1449void DeleteAmbientObjects() {

Callers 1

StartLevelFunction · 0.85

Calls 1

ObjDeleteFunction · 0.85

Tested by

no test coverage detected