]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
minor fix for plane snapping
authorRudolf Polzer <divVerent@xonotic.org>
Fri, 19 Nov 2010 05:41:26 +0000 (06:41 +0100)
committerRudolf Polzer <divVerent@xonotic.org>
Fri, 19 Nov 2010 05:41:58 +0000 (06:41 +0100)
tools/quake3/q3map2/map.c

index 448a24fb2398b3e023d9d477e31e93dd29434d0b..9c15895c3df6ebd11cd6815fb14b1f7182939d9a 100644 (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 */
                        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;
                        }