]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
now with icon
authorRudolf Polzer <divverent@alientrap.org>
Thu, 12 Jan 2012 17:36:06 +0000 (18:36 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 12 Jan 2012 17:36:06 +0000 (18:36 +0100)
gfx/hud/default/superweapons.tga [new file with mode: 0644]
qcsrc/client/hud.qc

diff --git a/gfx/hud/default/superweapons.tga b/gfx/hud/default/superweapons.tga
new file mode 100644 (file)
index 0000000..740019e
Binary files /dev/null and b/gfx/hud/default/superweapons.tga differ
index 9305673ed71d9fec02515410c81c42de9be4a104..9d2a8efc916fd2db240179605da7008017cde43c 100644 (file)
@@ -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
        {