]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
reenabled exact portal culling of surface triangles, because it was not bugged after all
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 9 Feb 2007 04:36:48 +0000 (04:36 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 9 Feb 2007 04:36:48 +0000 (04:36 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6814 d7cf8633-e32d-0410-b094-e92efae38249

portals.c

index b53e14e9f87cae5ebf3e07b478afcf040773d9d4..fccaae935d48eaa43cf324a66c8cc86bea43aee3 100644 (file)
--- a/portals.c
+++ b/portals.c
@@ -339,9 +339,7 @@ static void Portal_RecursiveFlow (portalrecursioninfo_t *info, mleaf_t *leaf, in
                                                                trimaxs[1] = max(v[1], max(v[4], v[7]));
                                                                trimins[2] = min(v[2], min(v[5], v[8]));
                                                                trimaxs[2] = max(v[2], max(v[5], v[8]));
-                                                               // FIXME: Portal_PortalThroughPortalPlanes is
-                                                               // nice, but it seems to fail on some polygons
-                                                               if (BoxesOverlap(trimins, trimaxs, info->boxmins, info->boxmaxs))// && Portal_PortalThroughPortalPlanes(&portalplanes[firstclipplane], numclipplanes, v, 3, &portaltemppoints2[0][0], 256) > 0)
+                                                               if (BoxesOverlap(trimins, trimaxs, info->boxmins, info->boxmaxs) && Portal_PortalThroughPortalPlanes(&portalplanes[firstclipplane], numclipplanes, v, 3, &portaltemppoints2[0][0], 256) > 0)
                                                                {
                                                                        SETPVSBIT(info->surfacepvs, surfaceindex);
                                                                        info->surfacelist[info->numsurfaces++] = surfaceindex;