From d1b2d3b751fc2700a03a354bad54658ff8014b42 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 29 Jan 2007 07:51:07 +0000 Subject: [PATCH] fix stupid bug in insertion of occluder triangles in the svbsp code (it was stopping after adding the first one) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6765 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rsurf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_rsurf.c b/gl_rsurf.c index e5262f3e..c1913be6 100644 --- a/gl_rsurf.c +++ b/gl_rsurf.c @@ -644,7 +644,7 @@ void R_Q1BSP_RecursiveGetLightInfo(r_q1bsp_getlightinfo_t *info, mnode_t *node) VectorCopy(v[0], v2[0]); VectorCopy(v[1], v2[1]); VectorCopy(v[2], v2[2]); - if (!(SVBSP_AddPolygon(&r_svbsp, 3, v2[0], info->svbsp_insertoccluder, NULL, NULL, 0) & 2)) + if (!(SVBSP_AddPolygon(&r_svbsp, 3, v2[0], info->svbsp_insertoccluder, NULL, NULL, 0) & 2) || info->svbsp_insertoccluder) continue; } SETPVSBIT(info->outsurfacepvs, surfaceindex); -- 2.39.2