mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-11-23 04:51:56 +00:00
Fix wrong usage of loop variables
This commit is contained in:
parent
6d03fac378
commit
8d12d9af4f
2 changed files with 3 additions and 3 deletions
|
@ -62,7 +62,7 @@ void idSurface_Polytope::FromPlanes( const idPlane *planes, const int numPlanes
|
|||
}
|
||||
|
||||
for ( j = 0; j < w.GetNumPoints(); j++ ) {
|
||||
for ( k = 0; k < verts.Num(); j++ ) {
|
||||
for ( k = 0; k < verts.Num(); k++ ) {
|
||||
if ( verts[k].xyz.Compare( w[j].ToVec3(), POLYTOPE_VERTEX_EPSILON ) ) {
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -3125,9 +3125,9 @@ bool idMatX::IsOrthonormal( const float epsilon ) const {
|
|||
|
||||
ptr2 = mat + i;
|
||||
sum = ptr2[0] * ptr2[0] - 1.0f;
|
||||
for ( i = 1; i < numRows; i++ ) {
|
||||
for ( int j = 1; j < numRows; j++ ) {
|
||||
ptr2 += numColumns;
|
||||
sum += ptr2[i] * ptr2[i];
|
||||
sum += ptr2[i] * ptr2[j];
|
||||
}
|
||||
if ( idMath::Fabs( sum ) > epsilon ) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue