1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-23 16:30:01 +00:00

Merge pull request #811 from majesticCoding/miami

CGlass indices fix
This commit is contained in:
aap 2020-11-10 15:28:52 +01:00 committed by GitHub
commit e87cd7077e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -967,7 +967,7 @@ CGlass::BreakGlassPhysically(CVector pos, float radius)
for ( int32 j = 0; j < col->numTriangles; j++ ) for ( int32 j = 0; j < col->numTriangles; j++ )
{ {
if ( CCollision::TestSphereTriangle(sphere, if ( CCollision::TestSphereTriangle(sphere,
col->vertices, col->triangles[i], col->trianglePlanes[i]) ) col->vertices, col->triangles[j], col->trianglePlanes[j]) )
{ {
hit = true; hit = true;
} }