1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-11-06 08:25:55 +00:00

fix some breakage

This commit is contained in:
aap 2021-01-25 10:43:12 +01:00
parent 4f591aa87a
commit fef87b9219
2 changed files with 7 additions and 1 deletions

View file

@ -7,6 +7,8 @@
CColModel::CColModel(void) CColModel::CColModel(void)
{ {
boundingSphere.Set(0.0001f, CVector(0.0f, 0.0f, 0.0f));
boundingBox.Set(CVector(0.0f, 0.0f, 0.0f), CVector(0.0f, 0.0f, 0.0f));
numSpheres = 0; numSpheres = 0;
spheres = nil; spheres = nil;
numLines = 0; numLines = 0;
@ -18,7 +20,7 @@ CColModel::CColModel(void)
triangles = nil; triangles = nil;
trianglePlanes = nil; trianglePlanes = nil;
level = LEVEL_GENERIC; // generic col slot level = LEVEL_GENERIC; // generic col slot
ownsCollisionVolumes = true; // ownsCollisionVolumes = true;
} }
CColModel::~CColModel(void) CColModel::~CColModel(void)

View file

@ -275,6 +275,10 @@ RemoveWheelCB(RwObject *object, void *arg)
void void
CVehicleModelInfo::RemoveWheels(void) CVehicleModelInfo::RemoveWheels(void)
{ {
#ifdef FIX_BUGS
if(m_clump == nil)
return;
#endif
RwObjectNameIdAssocation *desc = ms_vehicleDescs[m_vehicleType]; RwObjectNameIdAssocation *desc = ms_vehicleDescs[m_vehicleType];
for(int i = 0; desc[i].name; i++){ for(int i = 0; desc[i].name; i++){
RwObjectIdAssociation assoc; RwObjectIdAssociation assoc;