]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
moved a Cvar_RegisterVariable call to ensure that it happens before config parsing
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 4 May 2005 14:07:47 +0000 (14:07 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 4 May 2005 14:07:47 +0000 (14:07 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5223 d7cf8633-e32d-0410-b094-e92efae38249

menu.c

diff --git a/menu.c b/menu.c
index 591381750453dc3b9a3305b03e094443affdd319..0506b8780716373a6da5b3c30b259ee2c06bfc33 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -4264,7 +4264,6 @@ void M_Init (void)
        Cmd_AddCommand ("menu_options_effects", M_Menu_Options_Effects_f);
        Cmd_AddCommand ("menu_options_graphics", M_Menu_Options_Graphics_f);
        Cmd_AddCommand ("menu_options_colorcontrol", M_Menu_Options_ColorControl_f);
-       Cvar_RegisterVariable (&menu_options_colorcontrol_correctionvalue);
        Cmd_AddCommand ("menu_keys", M_Menu_Keys_f);
        Cmd_AddCommand ("menu_video", M_Menu_Video_f);
        Cmd_AddCommand ("menu_reset", M_Menu_Reset_f);
@@ -4799,6 +4798,7 @@ void MR_Init_Commands(void)
 {
        // set router console commands
        Cvar_RegisterVariable (&forceqmenu);
+       Cvar_RegisterVariable (&menu_options_colorcontrol_correctionvalue);
        if (gamemode == GAME_NETHERWORLD)
                Cmd_AddCommand ("menu_fallback", MP_Error); //Force to old-style menu
        Cmd_AddCommand ("menu_restart",MR_Restart);