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 725da08..3e35f0c 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++);