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

Function InitDefaultBSP

Descent3/bsp.cpp:1200–1211  ·  view source on GitHub ↗

Initializes some variables for the indoor bsp tree

Source from the content-addressed store, hash-verified

1198
1199// Initializes some variables for the indoor bsp tree
1200void InitDefaultBSP() {
1201 if (BSP_initted) {
1202 DestroyBSPTree(&MineBSP);
1203 } else {
1204 atexit(DestroyDefaultBSPTree);
1205 }
1206
1207 MineBSP.polylist = NULL;
1208 MineBSP.vertlist = NULL;
1209
1210 BSP_initted = 1;
1211}

Callers 3

BuildBSPTreeFunction · 0.85
BuildSingleBSPTreeFunction · 0.85
LoadLevelFunction · 0.85

Calls 1

DestroyBSPTreeFunction · 0.85

Tested by

no test coverage detected