]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix powerups panel showing no border in hud conf mode
authorterencehill <piuntn@gmail.com>
Sun, 1 Aug 2010 20:34:14 +0000 (22:34 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 1 Aug 2010 20:34:14 +0000 (22:34 +0200)
qcsrc/client/hud.qc

index fd49022c36c2524e00bfbc67c911b637e325d8ee..1da95479adb7f38f4f86c1262a3ac1a0238436e9 100644 (file)
@@ -1976,10 +1976,17 @@ void HUD_Powerups(void) {
        pos = panel_pos;
        mySize = panel_size;
 
-       float strength_time, shield_time;
-
-       strength_time = bound(0, getstatf(STAT_STRENGTH_FINISHED) - time, 99);
-       shield_time = bound(0, getstatf(STAT_INVINCIBLE_FINISHED) - time, 99);
+       float strength_time, shield_time;
+       if(autocvar__hud_configure)
+       {
+               strength_time = 15;
+               shield_time = 27;
+       }
+       else
+       {
+               strength_time = bound(0, getstatf(STAT_STRENGTH_FINISHED) - time, 99);
+               shield_time = bound(0, getstatf(STAT_INVINCIBLE_FINISHED) - time, 99);
+       }
 
        HUD_Panel_DrawBg(bound(0, max(strength_time, shield_time), 1));
        if(panel_bg_padding)
@@ -1988,12 +1995,6 @@ void HUD_Powerups(void) {
                mySize -= '2 2 0' * panel_bg_padding;
        }
 
-       if(autocvar__hud_configure)
-       {
-               strength_time = 15;
-               shield_time = 27;
-       }
-
        vector barpos, barsize;
        vector picpos;
        vector numpos;