annotate BSPModel.cpp @ 2489:ceda74e07201

.
author Ritor1
date Thu, 11 Sep 2014 17:30:59 +0600
parents f4af3b203f65
children
rev   line source
2415
f4af3b203f65 LOD.cpp cleaned and search memory corrupt
Ritor1
parents: 2369
diff changeset
1 #define _CRTDBG_MAP_ALLOC
f4af3b203f65 LOD.cpp cleaned and search memory corrupt
Ritor1
parents: 2369
diff changeset
2 #include <stdlib.h>
f4af3b203f65 LOD.cpp cleaned and search memory corrupt
Ritor1
parents: 2369
diff changeset
3 #include <crtdbg.h>
f4af3b203f65 LOD.cpp cleaned and search memory corrupt
Ritor1
parents: 2369
diff changeset
4
2253
aff7a7b072b7 adding _CRT_SECURE_NO_WARNINGS to get rid of a few hundrer annoying warnings + adding count parameter to swprintf
Grumpy7
parents: 1583
diff changeset
5 #define _CRT_SECURE_NO_WARNINGS
1583
75fafd8ced59 Allocator (CMemory) bye-bye
Nomad
parents: 72
diff changeset
6 #include <stdlib.h>
75fafd8ced59 Allocator (CMemory) bye-bye
Nomad
parents: 72
diff changeset
7
0
Ritor1
parents:
diff changeset
8 #include "BSPModel.h"
Ritor1
parents:
diff changeset
9
Ritor1
parents:
diff changeset
10
Ritor1
parents:
diff changeset
11
Ritor1
parents:
diff changeset
12 //----- (00478389) --------------------------------------------------------
Ritor1
parents:
diff changeset
13 void BSPModel::Release()
Ritor1
parents:
diff changeset
14 {
2251
47bcb700b74b for StackLight_TerrainFace
Ritor1
parents: 1583
diff changeset
15 free(this->pVertices.pVertices);
47bcb700b74b for StackLight_TerrainFace
Ritor1
parents: 1583
diff changeset
16 this->pVertices.pVertices = 0;
47bcb700b74b for StackLight_TerrainFace
Ritor1
parents: 1583
diff changeset
17 free(this->pFaces);
2369
bddcaf5d5db2 removing non-nullptr conditions before frees, chaning 0 and NULL assignmnets to pointers to nullptr assignments
Grumpy7
parents: 2254
diff changeset
18 this->pFaces = nullptr;
2251
47bcb700b74b for StackLight_TerrainFace
Ritor1
parents: 1583
diff changeset
19 free(this->pFacesOrdering);
2369
bddcaf5d5db2 removing non-nullptr conditions before frees, chaning 0 and NULL assignmnets to pointers to nullptr assignments
Grumpy7
parents: 2254
diff changeset
20 this->pFacesOrdering = nullptr;
2251
47bcb700b74b for StackLight_TerrainFace
Ritor1
parents: 1583
diff changeset
21 free(this->pNodes);
2369
bddcaf5d5db2 removing non-nullptr conditions before frees, chaning 0 and NULL assignmnets to pointers to nullptr assignments
Grumpy7
parents: 2254
diff changeset
22 this->pNodes = nullptr;
2251
47bcb700b74b for StackLight_TerrainFace
Ritor1
parents: 1583
diff changeset
23 this->uNumNodes = 0;
47bcb700b74b for StackLight_TerrainFace
Ritor1
parents: 1583
diff changeset
24 this->uNumFaces = 0;
47bcb700b74b for StackLight_TerrainFace
Ritor1
parents: 1583
diff changeset
25 this->pVertices.uNumVertices = 0;
47bcb700b74b for StackLight_TerrainFace
Ritor1
parents: 1583
diff changeset
26 this->uNumConvexFaces = 0;
0
Ritor1
parents:
diff changeset
27 }