]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Show default set of owned weapons in the hud editor even if onlyowned is disabled
authorterencehill <piuntn@gmail.com>
Mon, 2 Feb 2015 17:52:09 +0000 (18:52 +0100)
committerterencehill <piuntn@gmail.com>
Mon, 2 Feb 2015 17:52:09 +0000 (18:52 +0100)
qcsrc/client/hud.qc

index 9bc90d49fc980d4494f440d7c5e79690f4951085..6499c5c3a2e8e3ec068b58bb81c0f047e739930e 100644 (file)
@@ -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
                }