From: Rudolf Polzer Date: Thu, 12 Jan 2012 17:36:06 +0000 (+0100) Subject: now with icon X-Git-Tag: xonotic-v0.6.0~177^2^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9d09d63aaf7de5e5428c8881cc82d0d50a75171d;p=xonotic%2Fxonotic-data.pk3dir.git now with icon --- diff --git a/gfx/hud/default/superweapons.tga b/gfx/hud/default/superweapons.tga new file mode 100644 index 000000000..740019e82 Binary files /dev/null and b/gfx/hud/default/superweapons.tga differ diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 9305673ed..9d2a8efc9 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -1087,6 +1087,9 @@ void HUD_Powerups(void) strength_time = bound(0, getstatf(STAT_STRENGTH_FINISHED) - time, 99); shield_time = bound(0, getstatf(STAT_INVINCIBLE_FINISHED) - time, 99); superweapons_time = bound(0, getstatf(STAT_SUPERWEAPONS_FINISHED) - time, 99); + + if (getstati(STAT_ITEMS, 0, 24) & IT_UNLIMITED_SUPERWEAPONS) + superweapons_time = 99; // force max } else {