]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't apply ITS_POWERUP to all powerups
authorFreddy <schro.sb@gmail.com>
Sat, 5 Nov 2016 13:57:59 +0000 (14:57 +0100)
committerFreddy <schro.sb@gmail.com>
Sat, 5 Nov 2016 13:57:59 +0000 (14:57 +0100)
qcsrc/common/t_items.qc

index 50a796c8100e1b084f6dabcd83e44d5428d62235..2b9a1f5d9860c9151cf1f4c3fa8ed947b919a88f 100644 (file)
@@ -463,7 +463,7 @@ void Item_Show (entity e, float mode)
                e.ItemStatus &= ~ITS_AVAILABLE;
        }}
 
-       if (def.instanceOfPowerup)
+       if (def == ITEM_Strength || def == ITEM_Shield)
                e.ItemStatus |= ITS_POWERUP;
 
        if (autocvar_g_nodepthtestitems)