]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Give a more explicative name to a variable
authorterencehill <piuntn@gmail.com>
Tue, 4 Aug 2015 20:24:37 +0000 (22:24 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 4 Aug 2015 20:24:37 +0000 (22:24 +0200)
qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.qc
qcsrc/menu/xonotic/radiobutton.qc

index 8ab5296383e97575f1c18ae106fb588bab2e061b..123caa89d23a87aa0d2299e76d7e1b4ab3f49381 100644 (file)
@@ -236,7 +236,7 @@ void XonoticMutatorsDialog_fill(entity me)
                me.TD(me, 1, 2, e = makeXonoticRadioButton(1, string_null, string_null, _("Regular (no arena)")));
        me.TR(me);
                me.TD(me, 1, 2, e = makeXonoticRadioButton(1, "g_weaponarena", "menu_weaponarena", _("Weapon arenas:")));
-                       e.getCvarValueFromCvar = true;
+                       e.cvarValueIsAnotherCvar = true;
                        e.cvarOffValue = "0";
        for(i = WEP_FIRST, j = 0; i <= WEP_LAST; ++i)
        {
index f29148380c43ec46e80091748674449538cafc22..51f4cc6a2cfb2df33157b71ce1587c253276d3bc 100644 (file)
@@ -15,7 +15,7 @@ CLASS(XonoticRadioButton, RadioButton)
        ATTRIB(XonoticRadioButton, cvarName, string, string_null)
        ATTRIB(XonoticRadioButton, cvarValue, string, string_null)
        ATTRIB(XonoticRadioButton, cvarOffValue, string, string_null)
-       ATTRIB(XonoticRadioButton, getCvarValueFromCvar, float, 0)
+       ATTRIB(XonoticRadioButton, cvarValueIsAnotherCvar, float, 0)
        METHOD(XonoticRadioButton, loadCvars, void(entity))
        METHOD(XonoticRadioButton, saveCvars, void(entity))
 
@@ -58,7 +58,7 @@ void XonoticRadioButton_loadCvars(entity me)
        {
                if(me.cvarName)
                {
-                       if(me.getCvarValueFromCvar)
+                       if(me.cvarValueIsAnotherCvar)
                                me.checked = (cvar_string(me.cvarName) == cvar_string(me.cvarValue));
                        else
                                me.checked = (cvar_string(me.cvarName) == me.cvarValue);
@@ -107,7 +107,7 @@ void XonoticRadioButton_saveCvars(entity me)
                {
                        if(me.checked)
                        {
-                               if(me.getCvarValueFromCvar)
+                               if(me.cvarValueIsAnotherCvar)
                                        cvar_set(me.cvarName, cvar_string(me.cvarValue));
                                else
                                        cvar_set(me.cvarName, me.cvarValue);