From 40292b11c8f7e6792fcfc2f9faa583b5344a36ef Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 19 Nov 2010 06:41:26 +0100 Subject: [PATCH] minor fix for plane snapping --- tools/quake3/q3map2/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/quake3/q3map2/map.c b/tools/quake3/q3map2/map.c index 448a24fb..9c15895c 100644 --- a/tools/quake3/q3map2/map.c +++ b/tools/quake3/q3map2/map.c @@ -251,7 +251,7 @@ int FindFloatPlane( vec3_t innormal, vec_t dist, int numPoints, vec3_t *points ) /* ydnar: test supplied points against this plane */ for( j = 0; j < numPoints; j++ ) { - d = DotProduct( points[ j ], normal ) - dist; + d = DotProduct( points[ j ], p->normal ) - p->dist; if( fabs( d ) > distanceEpsilon ) break; } -- 2.39.2