From: Rudolf Polzer Date: Sat, 31 Dec 2011 11:55:59 +0000 (+0100) Subject: clear drawmask if alpha < 0 (better fps) X-Git-Tag: xonotic-v0.6.0~189^2~19 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3fb9dba30083137968936c5c5bdd761d171245b9;p=xonotic%2Fxonotic-data.pk3dir.git clear drawmask if alpha < 0 (better fps) --- diff --git a/qcsrc/client/csqcmodel_hooks.qc b/qcsrc/client/csqcmodel_hooks.qc index 33e093adc..fc734b2c8 100644 --- a/qcsrc/client/csqcmodel_hooks.qc +++ b/qcsrc/client/csqcmodel_hooks.qc @@ -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;