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

Function cDestroyDroidCentral

scripts/Merc7.cpp:1439–1448  ·  view source on GitHub ↗

$$ACTION Custom Destroy Droid Central cDestroyDroidCentral Destroys Droid Central stops and destroys all active droids. Parameters: None $$END */

Source from the content-addressed store, hash-verified

1437$$END
1438*/
1439void cDestroyDroidCentral() {
1440 int i;
1441 for (i = 0; i < DC_N_DROIDS; i++) {
1442 if (dc_nodes[i].handle != OBJECT_HANDLE_NONE) {
1443 aObjDestroy(dc_nodes[i].handle);
1444 }
1445 }
1446 cResetDroidCentral();
1447 DC_EQR = -100;
1448}
1449
1450/*
1451$$ACTION

Callers

nothing calls this directly

Calls 2

aObjDestroyFunction · 0.85
cResetDroidCentralFunction · 0.85

Tested by

no test coverage detected