[IPhyCollmap] Fix plane writing

This commit is contained in:
momo5502
2017-03-18 15:19:31 +01:00
parent 649605551d
commit 5b0b14a5f5
2 changed files with 28 additions and 32 deletions

View File

@ -1350,8 +1350,8 @@ namespace Game
struct Bounds
{
vec3_t midPoint;
vec3_t halfSize;
vec3_t midPoint; // mins
vec3_t halfSize; // maxs
};
struct TriggerModel
@ -1700,20 +1700,22 @@ namespace Game
char edgeCount;
};
struct cbrushWrapper_t
struct cbrush_t
{
short count;
cbrushside_t* brushSide;
char * brushEdge;
char pad[24];
unsigned __int16 numsides;
unsigned __int16 glassPieceIndex;
cbrushside_t *sides;
char *baseAdjacentSide;
__int16 axialMaterialNum[2][3];
char firstAdjacentSideOffsets[2][3];
char edgeCount[2][3];
};
#pragma pack(push, 4)
struct BrushWrapper
{
float mins[3];
float maxs[3];
cbrushWrapper_t brush;
Bounds bounds;
cbrush_t brush;
int totalEdgeCount;
cplane_t *planes;
};
@ -2465,17 +2467,6 @@ namespace Game
short children[2];
};
struct cbrush_t
{
unsigned __int16 numsides;
unsigned __int16 glassPieceIndex;
cbrushside_t *sides;
char *baseAdjacentSide;
__int16 axialMaterialNum[2][3];
char firstAdjacentSideOffsets[2][3];
char edgeCount[2][3];
};
struct cLeaf_t
{
unsigned __int16 firstCollAabbIndex;