diff --git a/engine/common/cvar.c b/engine/common/cvar.c index 351dea8c..d99889d4 100644 --- a/engine/common/cvar.c +++ b/engine/common/cvar.c @@ -1118,24 +1118,6 @@ static void Cvar_Set_f( void ) Cvar_Set2( Cmd_Argv( 1 ), combined ); } -/* -============ -Cvar_SetGL_f - -As Cvar_Set, but also flags it as glconfig -============ -*/ -static void Cvar_SetGL_f( void ) -{ - if( Cmd_Argc() != 3 ) - { - Con_Printf( S_USAGE "setgl \n" ); - return; - } - - Cvar_SetGL( Cmd_Argv( 1 ), Cmd_Argv( 2 ) ); -} - /* ============ Cvar_Reset_f @@ -1326,7 +1308,6 @@ void Cvar_Init( void ) Cvar_RegisterVariable( &cmd_scripting ); Cvar_RegisterVariable( &host_developer ); // early registering for dev Cvar_RegisterVariable( &cl_filterstuffcmd ); - Cmd_AddRestrictedCommand( "setgl", Cvar_SetGL_f, "change the value of a opengl variable" ); // OBSOLETE Cmd_AddRestrictedCommand( "toggle", Cvar_Toggle_f, "toggles a console variable's values (use for more info)" ); Cmd_AddRestrictedCommand( "reset", Cvar_Reset_f, "reset any type variable to initial value" ); Cmd_AddCommand( "set", Cvar_Set_f, "create or change the value of a console variable" ); diff --git a/engine/common/host.c b/engine/common/host.c index fce0fd6d..b1a2a306 100644 --- a/engine/common/host.c +++ b/engine/common/host.c @@ -1316,7 +1316,6 @@ int EXPORT Host_Main( int argc, char **argv, const char *progname, int bChangeGa } host.change_game = false; // done - Cmd_RemoveCommand( "setgl" ); Cbuf_ExecStuffCmds(); // execute stuffcmds (commandline) SCR_CheckStartupVids(); // must be last