Fix sbar_showweaponicons, it needed to be cvar_or("", 1) -- Else it breaks older...
authorsamual <samual@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Sat, 7 Nov 2009 04:59:33 +0000 (04:59 +0000)
committersamual <samual@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Sat, 7 Nov 2009 04:59:33 +0000 (04:59 +0000)
git-svn-id: svn://svn.icculus.org/nexuiz/trunk@8221 f962a42d-fe04-0410-a3ab-8c8b0445ebaa

data/qcsrc/client/sbar.qc

index 1e8bd1b..39decfb 100644 (file)
@@ -2703,7 +2703,7 @@ void Sbar_Draw (void)
                CSQC_Strength_Timer();
 
                // weapon icons
-                if(cvar("sbar_showweaponicons")) {
+                if(cvar_or("sbar_showweaponicons", 1)) {
                        x = 1.0;
                                Sbar_DrawWeapon_Clear();
                        for(i = 1; i <= 24; ++i)