From e9293533c092d6dc7d15f39b8dd35ebaf4d1c9b9 Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 5 Feb 2013 10:51:52 +0100 Subject: [PATCH] Fix condition to stop drawing weapons panel when it completely disappears --- qcsrc/client/hud.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index a5fe9372f..abc43ce3a 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -468,7 +468,8 @@ void HUD_Weapons(void) { if((!autocvar_hud_panel_weapons) || (spectatee_status == -1)) return; - else if(timeout && time >= weapontime + timeout + timeout_effect_length && ((autocvar_hud_panel_weapons_timeout_effect != 1) && !(autocvar_hud_panel_weapons_timeout_fadebgmin + autocvar_hud_panel_weapons_timeout_fadefgmin))) + if(timeout && time >= weapontime + timeout + timeout_effect_length) + if(autocvar_hud_panel_weapons_timeout_effect == 3 || (autocvar_hud_panel_weapons_timeout_effect == 1 && !(autocvar_hud_panel_weapons_timeout_fadebgmin + autocvar_hud_panel_weapons_timeout_fadefgmin))) { weaponprevtime = time; return; -- 2.39.2