]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rsurf.c
tweaked the order of checks in an if, and removed the previously mentioned pvs textur...
[xonotic/darkplaces.git] / gl_rsurf.c
index dbe24cdf16ff00a9517e7f0091c0fa76cb1f93ac..5114da7cfbd30fe721429fe8990223987b47d744 100644 (file)
@@ -1425,7 +1425,7 @@ void R_WorldVisibility(void)
                                        surfacevisframes[*mark] = r_framecount;
                        // follow portals into other leafs
                        for (p = leaf->portals;p;p = p->next)
-                               if (DotProduct(r_vieworigin, p->plane.normal) < (p->plane.dist + 1) && p->past->visframe != r_framecount && !R_CullBox(p->mins, p->maxs) && CHECKPVSBIT(r_pvsbits, p->past->clusterindex))
+                               if (DotProduct(r_vieworigin, p->plane.normal) < (p->plane.dist + 1) && p->past->visframe != r_framecount && CHECKPVSBIT(r_pvsbits, p->past->clusterindex) && !R_CullBox(p->mins, p->maxs))
                                        leafstack[leafstackpos++] = p->past;
                }
        }