annotate BSPModel.cpp @ 725:7037f22cd716

little continue
author Ritor1
date Fri, 22 Mar 2013 01:29:25 +0600
parents 55e3aa43021d
children 75fafd8ced59
rev   line source
0
Ritor1
parents:
diff changeset
1 #include "BSPModel.h"
Ritor1
parents:
diff changeset
2 #include "Allocator.h"
Ritor1
parents:
diff changeset
3
Ritor1
parents:
diff changeset
4
Ritor1
parents:
diff changeset
5
Ritor1
parents:
diff changeset
6 //----- (00478389) --------------------------------------------------------
Ritor1
parents:
diff changeset
7 void BSPModel::Release()
Ritor1
parents:
diff changeset
8 {
Ritor1
parents:
diff changeset
9 BSPModel *v1; // esi@1
Ritor1
parents:
diff changeset
10 void *v2; // ST00_4@1
Ritor1
parents:
diff changeset
11 void *v3; // ST00_4@1
Ritor1
parents:
diff changeset
12 void *v4; // ST00_4@1
Ritor1
parents:
diff changeset
13
Ritor1
parents:
diff changeset
14 v1 = this;
72
55e3aa43021d quitting game crash fix
zipi
parents: 0
diff changeset
15 pAllocator->FreeChunk(*(void **)&this->pVertices.pVertices);
55e3aa43021d quitting game crash fix
zipi
parents: 0
diff changeset
16 v2 = v1->pFaces;
55e3aa43021d quitting game crash fix
zipi
parents: 0
diff changeset
17 v1->pVertices.pVertices = 0;
0
Ritor1
parents:
diff changeset
18 pAllocator->FreeChunk(v2);
72
55e3aa43021d quitting game crash fix
zipi
parents: 0
diff changeset
19 v3 = v1->pFacesOrdering;
55e3aa43021d quitting game crash fix
zipi
parents: 0
diff changeset
20 v1->pFaces = 0;
0
Ritor1
parents:
diff changeset
21 pAllocator->FreeChunk(v3);
72
55e3aa43021d quitting game crash fix
zipi
parents: 0
diff changeset
22 v4 = v1->pNodes;
55e3aa43021d quitting game crash fix
zipi
parents: 0
diff changeset
23 v1->pFacesOrdering = 0;
0
Ritor1
parents:
diff changeset
24 pAllocator->FreeChunk(v4);
72
55e3aa43021d quitting game crash fix
zipi
parents: 0
diff changeset
25 v1->pNodes = 0;
55e3aa43021d quitting game crash fix
zipi
parents: 0
diff changeset
26 v1->uNumNodes = 0;
55e3aa43021d quitting game crash fix
zipi
parents: 0
diff changeset
27 v1->uNumFaces = 0;
55e3aa43021d quitting game crash fix
zipi
parents: 0
diff changeset
28 v1->pVertices.uNumVertices = 0;
55e3aa43021d quitting game crash fix
zipi
parents: 0
diff changeset
29 v1->uNumConvexFaces = 0;
0
Ritor1
parents:
diff changeset
30 }