From: Rudolf Polzer Date: Fri, 19 Nov 2010 05:41:26 +0000 (+0100) Subject: minor fix for plane snapping X-Git-Tag: xonotic-v0.5.0~149 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=40292b11c8f7e6792fcfc2f9faa583b5344a36ef;p=xonotic%2Fnetradiant.git minor fix for plane snapping --- 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; }