This commit is contained in:
aap 2021-02-10 15:10:27 +01:00
parent c06b971b65
commit 8fb3a3ff23

View file

@ -374,7 +374,7 @@ CFileLoader::LoadCollisionModel(uint8 *buf, CColModel &model, char *modelname)
CVector vB = model.vertices[model.triangles[i].b].Get();
CVector vC = model.vertices[model.triangles[i].c].Get();
float area = CrossProduct(vA - vB, vA - vC).Magnitude();
if(area < 0.001f || vA == vB || vA == vB || vB == vC){
if(area < 0.001f || vA == vB || vA == vC || vB == vC){
i--;
model.numTriangles--;
}