]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Resolve a long-standing TODO hat had already been resolved at the time of addition
authorterencehill <piuntn@gmail.com>
Tue, 23 Jun 2020 10:44:12 +0000 (12:44 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 23 Jun 2020 10:44:12 +0000 (12:44 +0200)
qcsrc/menu/xonotic/colorbutton.qc
qcsrc/menu/xonotic/dialog_multiplayer_profile.qc

index 6675c1aee789ec2b0ab1291e3fce46bd423347f8..f9db47f99a2a6c2646f9c874ab660087581ee945 100644 (file)
@@ -69,7 +69,6 @@ void XonoticColorButton_saveCvars(entity me)
                else
                        cvar_set(me.cvarName, ftos((cvar(me.cvarName) & 240) + me.cvarValueFloat));
        }
-       // TODO on an apply button, read _cl_color and execute the color command for it
 }
 void XonoticColorButton_draw(entity me)
 {
index 4405d98de7d3f34be00cd3ce8fce0ca8c1d655da..e6d9e3492903f6beefcca98d4740676858bb7762 100644 (file)
@@ -36,7 +36,7 @@ void XonoticProfileTab_fill(entity me)
        entity e, pms, label, box;
        float i;
        entity profileApplyButton = makeXonoticCommandButton(_("Apply immediately"), '0 0 0',
-               "color -1 -1;"
+               "color -1 -1;" // apply colors contained in _cl_color
                "name \"$_cl_name\";"
                "playermodel $_cl_playermodel;"
                "playerskin $_cl_playerskin;"