From 77578bc108464cb468b81ef56e28af11f0f2f6aa Mon Sep 17 00:00:00 2001 From: eihrul Date: Thu, 24 Dec 2009 21:49:04 +0000 Subject: [PATCH] fixed plane test typo git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9683 d7cf8633-e32d-0410-b094-e92efae38249 --- svbsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svbsp.c b/svbsp.c index 725da08c..3e35f0cd 100644 --- 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++); -- 2.39.2