From c5184c4799e76d3b4e214dfcfc152d42b85df66c Mon Sep 17 00:00:00 2001
From: terencehill <piuntn@gmail.com>
Date: Mon, 2 Feb 2015 18:52:09 +0100
Subject: [PATCH] Show default set of owned weapons in the hud editor even if
 onlyowned is disabled

---
 qcsrc/client/hud.qc | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc
index 9bc90d49f..6499c5c3a 100644
--- a/qcsrc/client/hud.qc
+++ b/qcsrc/client/hud.qc
@@ -491,15 +491,18 @@ void HUD_Weapons(void)
 	if(!autocvar_hud_panel_weapons_complainbubble || autocvar__hud_configure || time - complain_weapon_time >= when + fadetime)
 		complain_weapon = 0;
 
+	if(autocvar__hud_configure)
+	{
+		if(!weapons_stat)
+			for(i = WEP_FIRST; i <= WEP_LAST; i += floor((WEP_LAST-WEP_FIRST)/5))
+				weapons_stat |= WepSet_FromWeapon(i);
+	}
+
 	// determine which weapons are going to be shown
 	if (autocvar_hud_panel_weapons_onlyowned)
 	{
 		if(autocvar__hud_configure)
 		{
-			if (!weapons_stat)
-				for(i = WEP_FIRST; i <= WEP_LAST; i += floor((WEP_LAST-WEP_FIRST)/5))
-					weapons_stat |= WepSet_FromWeapon(i);
-
 			if(menu_enabled != 2)
 				HUD_Panel_DrawBg(1); // also draw the bg of the entire panel
 		}
-- 
2.39.5