]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
clear drawmask if alpha < 0 (better fps)
authorRudolf Polzer <divverent@alientrap.org>
Sat, 31 Dec 2011 11:55:59 +0000 (12:55 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 31 Dec 2011 11:55:59 +0000 (12:55 +0100)
qcsrc/client/csqcmodel_hooks.qc

index 33e093adc5a7d9b25aa594c34bfd1d77e1ad15bc..fc734b2c83c279650fa5bdabe07d8156003244b0 100644 (file)
@@ -322,7 +322,7 @@ void CSQCModel_Effects_Apply(void)
                adddynamiclight(self.origin, 400, '3 3 3');
        if(eff & EF_DIMLIGHT)
                adddynamiclight(self.origin, 200, '1.5 1.5 1.5');
-       if((eff & EF_NODRAW) || (self.csqcmodel_effects & CSQCMODEL_EF_INVISIBLE))
+       if((eff & EF_NODRAW) || (self.csqcmodel_effects & CSQCMODEL_EF_INVISIBLE) || (self.alpha < 0))
                self.drawmask = 0;
        if(eff & EF_ADDITIVE)
                self.renderflags |= RF_ADDITIVE;