From: havoc Date: Sat, 10 Feb 2007 20:06:49 +0000 (+0000) Subject: fix a stupid bug in transparent water detection for q1bsp, it now works X-Git-Tag: xonotic-v0.1.0preview~3598 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=953641d2e244d3c1c6baa9fc25db519aa0fe00b4;p=xonotic%2Fdarkplaces.git fix a stupid bug in transparent water detection for q1bsp, it now works git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6816 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_brush.c b/model_brush.c index a35aefc2..ff4b6926 100644 --- a/model_brush.c +++ b/model_brush.c @@ -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; } }