]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/hud/panel/powerups.qc
Implement fading of panels when showing the scoreboard making use of a new show flag
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / hud / panel / powerups.qc
index 3b34be0f69bd53063f441f440b8cb083992443ad..7542e0a81efd9896be632f4162929836fb67a368 100644 (file)
@@ -1,6 +1,5 @@
 #include "powerups.qh"
 
-#include "scoreboard.qh"
 #include <common/items/all.qc>
 
 // Powerups (#2)
@@ -110,9 +109,8 @@ void HUD_Powerups()
                return;
 
        // Draw panel background
-       if(1 - scoreboard_fade_alpha <= 0)
-               return;
-       HUD_Panel_LoadCvars(1 - scoreboard_fade_alpha);
+       HUD_Panel_LoadCvars();
+
        if (autocvar_hud_panel_powerups_dynamichud)
                HUD_Scale_Enable();
        else