Mercurial > mm7
comparison BSPModel.cpp @ 2251:47bcb700b74b
for StackLight_TerrainFace
author | Ritor1 |
---|---|
date | Wed, 26 Feb 2014 20:10:43 +0600 |
parents | 75fafd8ced59 |
children | 2e02c384c62b |
comparison
equal
deleted
inserted
replaced
2245:8817c398b792 | 2251:47bcb700b74b |
---|---|
5 | 5 |
6 | 6 |
7 //----- (00478389) -------------------------------------------------------- | 7 //----- (00478389) -------------------------------------------------------- |
8 void BSPModel::Release() | 8 void BSPModel::Release() |
9 { | 9 { |
10 BSPModel *v1; // esi@1 | 10 free(this->pVertices.pVertices); |
11 void *v2; // ST00_4@1 | 11 this->pVertices.pVertices = 0; |
12 void *v3; // ST00_4@1 | 12 free(this->pFaces); |
13 void *v4; // ST00_4@1 | 13 this->pFaces = 0; |
14 | 14 free(this->pFacesOrdering); |
15 v1 = this; | 15 this->pFacesOrdering = 0; |
16 free(*(void **)&this->pVertices.pVertices); | 16 free(this->pNodes); |
17 v2 = v1->pFaces; | 17 this->pNodes = 0; |
18 v1->pVertices.pVertices = 0; | 18 this->uNumNodes = 0; |
19 free(v2); | 19 this->uNumFaces = 0; |
20 v3 = v1->pFacesOrdering; | 20 this->pVertices.uNumVertices = 0; |
21 v1->pFaces = 0; | 21 this->uNumConvexFaces = 0; |
22 free(v3); | |
23 v4 = v1->pNodes; | |
24 v1->pFacesOrdering = 0; | |
25 free(v4); | |
26 v1->pNodes = 0; | |
27 v1->uNumNodes = 0; | |
28 v1->uNumFaces = 0; | |
29 v1->pVertices.uNumVertices = 0; | |
30 v1->uNumConvexFaces = 0; | |
31 } | 22 } |