]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/brush.c
audit all uses of ClipWindingEpsilon and choose the strict variant or not, and explai...
[xonotic/netradiant.git] / tools / quake3 / q3map2 / brush.c
index b7c50f4c3348a998a674aca65af4b14dfadc5f76..eefaa75f2a8f00570f4285b5488b44241a123a8c 100644 (file)
@@ -1027,8 +1027,8 @@ void SplitBrush( brush_t *brush, int planenum, brush_t **front, brush_t **back )
                w = s->winding;
                if (!w)
                        continue;
                w = s->winding;
                if (!w)
                        continue;
-               ClipWindingEpsilon (w, plane->normal, plane->dist,
-                       0 /*PLANESIDE_EPSILON*/, &cw[0], &cw[1]);
+               ClipWindingEpsilonStrict (w, plane->normal, plane->dist,
+                       0 /*PLANESIDE_EPSILON*/, &cw[0], &cw[1]); /* strict, in parallel case we get the face back because it also is the midwinding */
                for (j=0 ; j<2 ; j++)
                {
                        if (!cw[j])
                for (j=0 ; j<2 ; j++)
                {
                        if (!cw[j])