]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix stupid bug in insertion of occluder triangles in the svbsp code (it was stopping...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 29 Jan 2007 07:51:07 +0000 (07:51 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 29 Jan 2007 07:51:07 +0000 (07:51 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6765 d7cf8633-e32d-0410-b094-e92efae38249

gl_rsurf.c

index e5262f3ef924d99b35e3217c3de7e60eb266957c..c1913be633e52555d342aac0837f2bbc8d94b048 100644 (file)
@@ -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);