From: terencehill Date: Mon, 2 Feb 2015 17:52:09 +0000 (+0100) Subject: Show default set of owned weapons in the hud editor even if onlyowned is disabled X-Git-Tag: xonotic-v0.8.1~129^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c5184c4799e76d3b4e214dfcfc152d42b85df66c;p=xonotic%2Fxonotic-data.pk3dir.git Show default set of owned weapons in the hud editor even if onlyowned is disabled --- 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 }