0
|
1 #include "BSPModel.h"
|
|
2 #include "Allocator.h"
|
|
3
|
|
4
|
|
5
|
|
6 //----- (00478389) --------------------------------------------------------
|
|
7 void BSPModel::Release()
|
|
8 {
|
|
9 BSPModel *v1; // esi@1
|
|
10 void *v2; // ST00_4@1
|
|
11 void *v3; // ST00_4@1
|
|
12 void *v4; // ST00_4@1
|
|
13
|
|
14 v1 = this;
|
72
|
15 pAllocator->FreeChunk(*(void **)&this->pVertices.pVertices);
|
|
16 v2 = v1->pFaces;
|
|
17 v1->pVertices.pVertices = 0;
|
0
|
18 pAllocator->FreeChunk(v2);
|
72
|
19 v3 = v1->pFacesOrdering;
|
|
20 v1->pFaces = 0;
|
0
|
21 pAllocator->FreeChunk(v3);
|
72
|
22 v4 = v1->pNodes;
|
|
23 v1->pFacesOrdering = 0;
|
0
|
24 pAllocator->FreeChunk(v4);
|
72
|
25 v1->pNodes = 0;
|
|
26 v1->uNumNodes = 0;
|
|
27 v1->uNumFaces = 0;
|
|
28 v1->pVertices.uNumVertices = 0;
|
|
29 v1->uNumConvexFaces = 0;
|
0
|
30 }
|