From: terencehill Date: Tue, 4 Aug 2015 19:16:45 +0000 (+0200) Subject: Remember "Weapon arenas:" checkbox selection on mutators dialog opening X-Git-Tag: xonotic-v0.8.2~1944^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=de3e89b717f25687ce01bb7ec3cf1ea3ff434a5b;p=xonotic%2Fxonotic-data.pk3dir.git Remember "Weapon arenas:" checkbox selection on mutators dialog opening --- diff --git a/qcsrc/menu/xonotic/radiobutton.qc b/qcsrc/menu/xonotic/radiobutton.qc index 05c8238d4..f29148380 100644 --- a/qcsrc/menu/xonotic/radiobutton.qc +++ b/qcsrc/menu/xonotic/radiobutton.qc @@ -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 {