From 7766418aefbf1e7c90bb5bcfebf40891123c3b85 Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 12 May 2011 22:54:08 +0200 Subject: [PATCH] Declare weapon_cnt just where it's used to avoid possible confusion with weapon_count --- qcsrc/client/hud.qc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 7924c2983..a3926d012 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -734,11 +734,10 @@ void HUD_Weapons(void) } } - float weapid, wpnalpha, weapon_cnt; - // TODO make this configurable if(weaponorder_bypriority != autocvar_cl_weaponpriority || !weaponorder[0]) { + float weapon_cnt; if(weaponorder_bypriority) strunzone(weaponorder_bypriority); if(weaponorder_byimpulse) @@ -772,6 +771,8 @@ void HUD_Weapons(void) panel_size -= '2 2 0' * panel_bg_padding; } + float weapid, wpnalpha; + if(autocvar_hud_panel_weapons_fade) { wpnalpha = 3.2 - 2 * (time - weapontime); -- 2.39.2