Walks the BSP tree and frees up any nodes/polygons that we might be using
| 761 | |
| 762 | // Walks the BSP tree and frees up any nodes/polygons that we might be using |
| 763 | void 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 |
| 773 | void DestroyDefaultBSPTree() { DestroyBSPTree(&MineBSP); } |
no test coverage detected