From: Amadeusz Sławiński Date: Wed, 22 Feb 2017 13:10:38 +0000 (+0100) Subject: double ifs to one X-Git-Tag: xonotic-v0.8.5~2843^2~11 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6d7ae399f1633a1ef2ded29834d03ed8ba0bc632;p=xonotic%2Fxonotic-data.pk3dir.git double ifs to one --- diff --git a/qcsrc/common/t_items.qc b/qcsrc/common/t_items.qc index 00b0dcf12..7ffb0c115 100644 --- a/qcsrc/common/t_items.qc +++ b/qcsrc/common/t_items.qc @@ -58,8 +58,7 @@ void Item_SetAlpha(entity this) this.alpha = -1; } - if(!veh_hud) - if(this.ItemStatus & ITS_STAYWEP) + if((!veh_hud) && (this.ItemStatus & ITS_STAYWEP)) { this.colormod = this.glowmod = autocvar_cl_weapon_stay_color; this.alpha = autocvar_cl_weapon_stay_alpha;