]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
force showing rockets on the inventory panel in conf mode (with showonlycurrent type on)
authorFruitieX <rasse@rasse-lappy.localdomain>
Wed, 9 Jun 2010 20:08:43 +0000 (23:08 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Wed, 9 Jun 2010 20:08:43 +0000 (23:08 +0300)
qcsrc/client/hud.qc

index 8c2f246bc205be25d7b4935289a8f129c75271e5..1f592d1945421029cda8aa788d16da54cbe35782 100644 (file)
@@ -1482,13 +1482,17 @@ void HUD_Inventory()
                        a = 100;
 
                if(cvar("hud_inventory_onlycurrent")) {
-                       if (stat_items & GetAmmoItemCode(i)) {
+                       if(hud_configure)
+                               i = 2;
+                       if (stat_items & GetAmmoItemCode(i) || hud_configure) {
                                drawpic_skin(pos, GetAmmoPicture(i), '1 1 0' * mySize_y, '1 1 1', hud_fg_alpha, DRAWFLAG_NORMAL);
                                if(a < 10)
                                        HUD_DrawXNum(pos + eX * mySize_y + eY * 0.25 * mySize_y, a, strlen(ftos(a)), 0, 0.5 * mySize_y, '0.7 0 0', 0, 0, hud_fg_alpha, DRAWFLAG_NORMAL);
                                else
                                        HUD_DrawXNum(pos + eX * mySize_y + eY * 0.25 * mySize_y, a, strlen(ftos(a)), 0, 0.5 * mySize_y, '1 1 1', 0, 0, hud_fg_alpha, DRAWFLAG_NORMAL);
                        }
+                       if(hud_configure)
+                               break;
                } else {
                        if (a > 0) {
                                if(mySize_x/mySize_y >= 10) { // arrange horizontally