]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix a stupid bug in transparent water detection for q1bsp, it now works
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 10 Feb 2007 20:06:49 +0000 (20:06 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 10 Feb 2007 20:06:49 +0000 (20:06 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6816 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c

index a35aefc2c84828115c1bbb4439aebd85d55fb7a3..ff4b6926aacc53343d60ea1933c0718535ec2d3b 100644 (file)
@@ -2381,7 +2381,7 @@ qboolean Mod_Q1BSP_CheckWaterAlphaSupport(void)
                {
                        pvs = loadmodel->brush.data_pvsclusters + leaf->clusterindex * loadmodel->brush.num_pvsclusterbytes;
                        for (j = 0;j < loadmodel->brush.num_leafs;j++)
-                               if (leaf->contents == CONTENTS_EMPTY && CHECKPVSBIT(pvs, loadmodel->brush.data_leafs[j].clusterindex))
+                               if (CHECKPVSBIT(pvs, loadmodel->brush.data_leafs[j].clusterindex) && loadmodel->brush.data_leafs[j].contents == CONTENTS_EMPTY)
                                        return true;
                }
        }