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)
{
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;
spheres = nil;
numLines = 0;
@ -18,7 +20,7 @@ CColModel::CColModel(void)
triangles = nil;
trianglePlanes = nil;
level = LEVEL_GENERIC; // generic col slot
ownsCollisionVolumes = true;
// ownsCollisionVolumes = true;
}
CColModel::~CColModel(void)

View File

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