Reset default controls for LOADCONFIG command

This commit is contained in:
mazmazz 2018-12-20 10:13:43 -05:00
parent 1029463741
commit 71da6836c0

View file

@ -442,6 +442,9 @@ void Command_LoadConfig_f(void)
strcpy(configfile, COM_Argv(1));
FIL_ForceExtension(configfile, ".cfg");
// load default control
G_Controldefault();
// temporarily reset execversion to default
cv_execversion.flags &= ~CV_HIDEN;
COM_BufInsertText(va("%s \"%s\"\n", cv_execversion.name, cv_execversion.defaultvalue));