From a035d049951445f892a37bfdef3e738f8a18e8b9 Mon Sep 17 00:00:00 2001 From: terencehill Date: Mon, 2 Feb 2015 19:43:13 +0100 Subject: [PATCH] Fix weapon count when there's a complain_weapon (add it only if you don't have it!) --- qcsrc/client/hud.qc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 6499c5c3a..89519d627 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -510,13 +510,9 @@ void HUD_Weapons(void) // do we own this weapon? weapon_count = 0; for(i = 0; i <= WEP_LAST-WEP_FIRST; ++i) - if(weapons_stat & WepSet_FromWeapon(weaponorder[i].weapon)) + if((weapons_stat & WepSet_FromWeapon(weaponorder[i].weapon)) || (weaponorder[i].weapon == complain_weapon)) ++weapon_count; - // add it anyway if weaponcomplain is shown - if(complain_weapon) - ++weapon_count; - // might as well commit suicide now, no reason to live ;) if (weapon_count == 0) { -- 2.39.2