[IXModel] Correct model loading

This commit is contained in:
momo5502
2017-01-01 20:04:20 +01:00
parent 75158227fb
commit 2c7b7f6d87
3 changed files with 60 additions and 50 deletions

View File

@ -1586,10 +1586,7 @@ namespace Game
GfxPackedVertex* vertexBuffer; // +28
int numCT; // +32
XRigidVertList* ct; // +36
int partBits[4];
char pad5[8]; // +40
// pad5 matches XModelSurfaces pad
// total size, 64
int partBits[6];
};
struct XModelSurfs
@ -1597,19 +1594,17 @@ namespace Game
const char* name;
XSurface* surfaces;
int numSurfaces;
int partBits[4];
char pad[8];
int partBits[6];
};
struct XModelLodInfo
{
float dist;
short numSurfs; // +4
short maxSurfs;// +6
XModelSurfs* surfaces; // +8
int partBits[4]; // +12
char pad3[8];
XSurface* surfs;
unsigned __int16 numsurfs;
unsigned __int16 surfIndex;
XModelSurfs *modelSurfs;
int partBits[6];
XSurface *surfs;
char pad4[4];
};