]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
double ifs to one
authorAmadeusz Sławiński <amade@asmblr.net>
Wed, 22 Feb 2017 13:10:38 +0000 (14:10 +0100)
committerAmadeusz Sławiński <amade@asmblr.net>
Wed, 22 Feb 2017 13:10:38 +0000 (14:10 +0100)
qcsrc/common/t_items.qc

index 00b0dcf12b5d342c46cbf44b09172d74dbd4fda8..7ffb0c115fbc29893ead391721f3f9b918f61498 100644 (file)
@@ -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;