minor fix for plane snapping

This commit is contained in:
Rudolf Polzer 2010-11-19 06:41:26 +01:00
parent c5639967f0
commit 40292b11c8

View File

@ -251,7 +251,7 @@ int FindFloatPlane( vec3_t innormal, vec_t dist, int numPoints, vec3_t *points )
/* ydnar: test supplied points against this plane */ /* ydnar: test supplied points against this plane */
for( j = 0; j < numPoints; j++ ) for( j = 0; j < numPoints; j++ )
{ {
d = DotProduct( points[ j ], normal ) - dist; d = DotProduct( points[ j ], p->normal ) - p->dist;
if( fabs( d ) > distanceEpsilon ) if( fabs( d ) > distanceEpsilon )
break; break;
} }