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

Function DestroyBSPTree

Descent3/bsp.cpp:763–770  ·  view source on GitHub ↗

Walks the BSP tree and frees up any nodes/polygons that we might be using

Source from the content-addressed store, hash-verified

761
762// Walks the BSP tree and frees up any nodes/polygons that we might be using
763void DestroyBSPTree(bsptree *tree) {
764 if (BSP_initted == 0)
765 return;
766
767 mprintf(0, "Destroying bsptree!\n");
768 DestroyBSPNode(tree->root);
769 BSP_initted = 0;
770}
771
772// Destroys the mines BSP tree at shutdown
773void DestroyDefaultBSPTree() { DestroyBSPTree(&MineBSP); }

Callers 3

OnDestroyBspMethod · 0.85
DestroyDefaultBSPTreeFunction · 0.85
InitDefaultBSPFunction · 0.85

Calls 1

DestroyBSPNodeFunction · 0.85

Tested by

no test coverage detected