]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix onlycurrent mode of inventory panel
authorFruitieX <rasse@rasse-lappy.localdomain>
Tue, 6 Jul 2010 12:01:20 +0000 (15:01 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Tue, 6 Jul 2010 12:01:20 +0000 (15:01 +0300)
qcsrc/client/hud.qc

index 984d13e5df8f275ad834f140dbf0dd4247ad176c..0abb9cdfc25a7c541c00ab0da4773a111153db7c 100644 (file)
@@ -1747,8 +1747,10 @@ void HUD_Inventory(void)
                        if(autocvar__hud_configure)
                                i = 2;
                        if (currently_selected || autocvar__hud_configure)
+                       {
                                DrawAmmoItem(pos, mySize, i, currently_selected);
-                       break;
+                               break;
+                       }
                } else {
                        DrawAmmoItem(pos + eX * column * mySize_x*(1/columns) + eY * row * mySize_y*(1/rows), eX * mySize_x*(1/columns) + eY * mySize_y*(1/rows), i, currently_selected);
                        ++row;