MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / ClrAllObjects

Function ClrAllObjects

Source/objects.cpp:417–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417void ClrAllObjects()
418{
419 for (Object &object : Objects) {
420 object = {};
421 }
422 ActiveObjectCount = 0;
423 for (int i = 0; i < MAXOBJECTS; i++) {
424 AvailableObjects[i] = i;
425 }
426 memset(ActiveObjects, 0, sizeof(ActiveObjects));
427 trapdir = 0;
428 trapid = 1;
429 leverid = 1;
430}
431
432void AddTortures()
433{

Callers 2

InitObjectsFunction · 0.85
SetMapObjectsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected