]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remember "Weapon arenas:" checkbox selection on mutators dialog opening
authorterencehill <piuntn@gmail.com>
Tue, 4 Aug 2015 19:16:45 +0000 (21:16 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 4 Aug 2015 19:41:17 +0000 (21:41 +0200)
qcsrc/menu/xonotic/radiobutton.qc

index 05c8238d488b8b460cb6277dcefde8604ce967e1..f29148380c43ec46e80091748674449538cafc22 100644 (file)
@@ -57,7 +57,12 @@ void XonoticRadioButton_loadCvars(entity me)
        if(me.cvarValue)
        {
                if(me.cvarName)
-                       me.checked = (cvar_string(me.cvarName) == me.cvarValue);
+               {
+                       if(me.getCvarValueFromCvar)
+                               me.checked = (cvar_string(me.cvarName) == cvar_string(me.cvarValue));
+                       else
+                               me.checked = (cvar_string(me.cvarName) == me.cvarValue);
+               }
        }
        else
        {