From: havoc Date: Wed, 4 May 2005 14:07:47 +0000 (+0000) Subject: moved a Cvar_RegisterVariable call to ensure that it happens before config parsing X-Git-Tag: xonotic-v0.1.0preview~4956 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f8d61e03355a21cd572cbf1a8172467523db5223;p=xonotic%2Fdarkplaces.git moved a Cvar_RegisterVariable call to ensure that it happens before config parsing git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5223 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/menu.c b/menu.c index 59138175..0506b878 100644 --- 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);