]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fixed plane test typo
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 24 Dec 2009 21:49:04 +0000 (21:49 +0000)
committereihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 24 Dec 2009 21:49:04 +0000 (21:49 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9683 d7cf8633-e32d-0410-b094-e92efae38249

svbsp.c

diff --git a/svbsp.c b/svbsp.c
index 725da08cbb12586138c281d7645d9bc687d9a890..3e35f0cdc9e3ef47c927ec8422a5c592d8c27bbf 100644 (file)
--- a/svbsp.c
+++ b/svbsp.c
@@ -254,7 +254,7 @@ static int SVBSP_AddPolygonNode(svbsp_t *b, int *parentnodenumpointer, int paren
                plane[1] = node->plane[1];
                plane[2] = node->plane[2];
                plane[3] = node->plane[3];
-               d = SVBSP_DotProduct(points, plane) >= plane[3];
+               d = SVBSP_DotProduct(points, plane) - plane[3];
                if (d >= SVBSP_CLIP_EPSILON)
                {
                        for (i = 1;i < numpoints && SVBSP_DotProduct(points + i * 3, plane) - plane[3] >= SVBSP_CLIP_EPSILON;i++);