annotate BSPModel.cpp @ 2149:d4f00d622889

SortByScreenSpaceX and SortByScreenSpaceY for Vis fix
author Ritor1
date Wed, 08 Jan 2014 15:01:58 +0600
parents 75fafd8ced59
children 47bcb700b74b aff7a7b072b7
rev   line source
1583
75fafd8ced59 Allocator (CMemory) bye-bye
Nomad
parents: 72
diff changeset
1 #include <stdlib.h>
75fafd8ced59 Allocator (CMemory) bye-bye
Nomad
parents: 72
diff changeset
2
0
Ritor1
parents:
diff changeset
3 #include "BSPModel.h"
Ritor1
parents:
diff changeset
4
Ritor1
parents:
diff changeset
5
Ritor1
parents:
diff changeset
6
Ritor1
parents:
diff changeset
7 //----- (00478389) --------------------------------------------------------
Ritor1
parents:
diff changeset
8 void BSPModel::Release()
Ritor1
parents:
diff changeset
9 {
Ritor1
parents:
diff changeset
10 BSPModel *v1; // esi@1
Ritor1
parents:
diff changeset
11 void *v2; // ST00_4@1
Ritor1
parents:
diff changeset
12 void *v3; // ST00_4@1
Ritor1
parents:
diff changeset
13 void *v4; // ST00_4@1
Ritor1
parents:
diff changeset
14
Ritor1
parents:
diff changeset
15 v1 = this;
1583
75fafd8ced59 Allocator (CMemory) bye-bye
Nomad
parents: 72
diff changeset
16 free(*(void **)&this->pVertices.pVertices);
72
55e3aa43021d quitting game crash fix
zipi
parents: 0
diff changeset
17 v2 = v1->pFaces;
55e3aa43021d quitting game crash fix
zipi
parents: 0
diff changeset
18 v1->pVertices.pVertices = 0;
1583
75fafd8ced59 Allocator (CMemory) bye-bye
Nomad
parents: 72
diff changeset
19 free(v2);
72
55e3aa43021d quitting game crash fix
zipi
parents: 0
diff changeset
20 v3 = v1->pFacesOrdering;
55e3aa43021d quitting game crash fix
zipi
parents: 0
diff changeset
21 v1->pFaces = 0;
1583
75fafd8ced59 Allocator (CMemory) bye-bye
Nomad
parents: 72
diff changeset
22 free(v3);
72
55e3aa43021d quitting game crash fix
zipi
parents: 0
diff changeset
23 v4 = v1->pNodes;
55e3aa43021d quitting game crash fix
zipi
parents: 0
diff changeset
24 v1->pFacesOrdering = 0;
1583
75fafd8ced59 Allocator (CMemory) bye-bye
Nomad
parents: 72
diff changeset
25 free(v4);
72
55e3aa43021d quitting game crash fix
zipi
parents: 0
diff changeset
26 v1->pNodes = 0;
55e3aa43021d quitting game crash fix
zipi
parents: 0
diff changeset
27 v1->uNumNodes = 0;
55e3aa43021d quitting game crash fix
zipi
parents: 0
diff changeset
28 v1->uNumFaces = 0;
55e3aa43021d quitting game crash fix
zipi
parents: 0
diff changeset
29 v1->pVertices.uNumVertices = 0;
55e3aa43021d quitting game crash fix
zipi
parents: 0
diff changeset
30 v1->uNumConvexFaces = 0;
0
Ritor1
parents:
diff changeset
31 }