From: terencehill Date: Sun, 1 Aug 2010 20:34:14 +0000 (+0200) Subject: fix powerups panel showing no border in hud conf mode X-Git-Tag: xonotic-v0.1.0preview~362^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3cca1ec505cc46254542066d63e81ca1ce2932b2;p=xonotic%2Fxonotic-data.pk3dir.git fix powerups panel showing no border in hud conf mode --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index fd49022c3..1da95479a 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -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;