]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix the off-by-one fix (oops)
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 15 Oct 2001 13:36:37 +0000 (13:36 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 15 Oct 2001 13:36:37 +0000 (13:36 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@919 d7cf8633-e32d-0410-b094-e92efae38249

gl_rsurf.c

index 54f34cc32cf7f09390e84e8fa9d21f288f2eb7bd..78ebba523ddbcaf209bca9056d0a0e97447ea77e 100644 (file)
@@ -1745,7 +1745,7 @@ void R_PVSWorldNode()
                r_portalframecount++;
 
        numleafs = model->numleafs;
-       numbits = numleafs - 1;
+       numbits = numleafs;
        k = 0;
        in = r_viewleaf->compressed_vis;
        row = (numbits + 7) >> 3;
@@ -1762,7 +1762,7 @@ void R_PVSWorldNode()
                                        if (leafnum > numleafs)
                                                return;
                                        c -= bit;
-                                       leaf = &model->leafs[i];
+                                       leaf = &model->leafs[leafnum];
                                        if (R_NotCulledBox(leaf->mins, leaf->maxs))
                                        {
                                                //for (portal = leaf->portals;portal;portal = portal->next)