From da7fcbf0a3baeffcf740b7dcb971bc2a9159e2c4 Mon Sep 17 00:00:00 2001 From: FruitieX Date: Wed, 9 Jun 2010 23:08:43 +0300 Subject: [PATCH] force showing rockets on the inventory panel in conf mode (with showonlycurrent type on) --- qcsrc/client/hud.qc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 8c2f246bc..1f592d194 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -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 -- 2.39.2