Reset default controls for LOADCONFIG command
This commit is contained in:
parent
1029463741
commit
71da6836c0
|
@ -442,6 +442,9 @@ void Command_LoadConfig_f(void)
|
||||||
strcpy(configfile, COM_Argv(1));
|
strcpy(configfile, COM_Argv(1));
|
||||||
FIL_ForceExtension(configfile, ".cfg");
|
FIL_ForceExtension(configfile, ".cfg");
|
||||||
|
|
||||||
|
// load default control
|
||||||
|
G_Controldefault();
|
||||||
|
|
||||||
// temporarily reset execversion to default
|
// temporarily reset execversion to default
|
||||||
cv_execversion.flags &= ~CV_HIDEN;
|
cv_execversion.flags &= ~CV_HIDEN;
|
||||||
COM_BufInsertText(va("%s \"%s\"\n", cv_execversion.name, cv_execversion.defaultvalue));
|
COM_BufInsertText(va("%s \"%s\"\n", cv_execversion.name, cv_execversion.defaultvalue));
|
||||||
|
|
Loading…
Reference in New Issue