]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't return if player doesn't have the default powerups (HUD panel isn't drawn if...
authorMario <mario@smbclan.net>
Sat, 24 Dec 2016 01:55:12 +0000 (11:55 +1000)
committerMario <mario@smbclan.net>
Sat, 24 Dec 2016 01:55:12 +0000 (11:55 +1000)
qcsrc/client/hud/panel/powerups.qc

index 7c454f9f9001ff695115234408f7c571f8d93a25..076ce918f14723dcde2e755308a3f4379fb885e0 100644 (file)
@@ -63,7 +63,7 @@ void HUD_Powerups()
 {
        int allItems = STAT(ITEMS);
        int allBuffs = STAT(BUFFS);
-       int strengthTime, shieldTime, superTime;
+       float strengthTime, shieldTime, superTime;
 
        // Initialize items
        if(!autocvar__hud_configure)
@@ -72,7 +72,7 @@ void HUD_Powerups()
                        return;
                if(STAT(HEALTH) <= 0 && autocvar_hud_panel_powerups_hide_ondeath)
                        return;
-               if(!(allItems & (ITEM_Strength.m_itemid | ITEM_Shield.m_itemid | IT_SUPERWEAPON)) && !allBuffs) return;
+               //if(!(allItems & (ITEM_Strength.m_itemid | ITEM_Shield.m_itemid | IT_SUPERWEAPON)) && !allBuffs) return;
 
                strengthTime = bound(0, STAT(STRENGTH_FINISHED) - time, 99);
                shieldTime = bound(0, STAT(INVINCIBLE_FINISHED) - time, 99);