->defalutvalue -- .defaultvalue adjustment

This commit is contained in:
mazmazz 2018-11-12 17:37:54 -05:00
parent 40e5a2104b
commit 80c613561c
2 changed files with 12 additions and 12 deletions

View file

@ -6139,10 +6139,10 @@ void M_TutorialSaveControlResponse(INT32 ch)
if (ch == 'y' || ch == KEY_ENTER)
{
G_CopyControls(gamecontrol, gamecontroldefault[tutorialgcs], gclist_tutorial, num_gclist_tutorial);
CV_Set(&cv_usemouse, cv_usemouse->defaultvalue);
CV_Set(&cv_alwaysfreelook, cv_alwaysfreelook->defaultvalue);
CV_Set(&cv_mousemove, cv_mousemove->defaultvalue);
CV_Set(&cv_analog, cv_analog->defaultvalue);
CV_Set(&cv_usemouse, cv_usemouse.defaultvalue);
CV_Set(&cv_alwaysfreelook, cv_alwaysfreelook.defaultvalue);
CV_Set(&cv_mousemove, cv_mousemove.defaultvalue);
CV_Set(&cv_analog, cv_analog.defaultvalue);
S_StartSound(NULL, sfx_itemup);
}
else
@ -6163,10 +6163,10 @@ static void M_TutorialControlResponse(INT32 ch)
tutorialanalog = cv_analog.value;
G_CopyControls(gamecontrol, gamecontroldefault[tutorialgcs], gclist_tutorial, num_gclist_tutorial);
CV_Set(&cv_usemouse, cv_usemouse->defaultvalue);
CV_Set(&cv_alwaysfreelook, cv_alwaysfreelook->defaultvalue);
CV_Set(&cv_mousemove, cv_mousemove->defaultvalue);
CV_Set(&cv_analog, cv_analog->defaultvalue);
CV_Set(&cv_usemouse, cv_usemouse.defaultvalue);
CV_Set(&cv_alwaysfreelook, cv_alwaysfreelook.defaultvalue);
CV_Set(&cv_mousemove, cv_mousemove.defaultvalue);
CV_Set(&cv_analog, cv_analog.defaultvalue);
//S_StartSound(NULL, sfx_itemup);
}

View file

@ -546,10 +546,10 @@ void M_SaveConfig(const char *filename)
CV_SetValue(&cv_mousemove, tutorialmousemove);
CV_SetValue(&cv_analog, tutorialanalog);
CV_SaveVariables(f);
CV_Set(&cv_usemouse, cv_usemouse->defaultvalue);
CV_Set(&cv_alwaysfreelook, cv_alwaysfreelook->defaultvalue);
CV_Set(&cv_mousemove, cv_mousemove->defaultvalue);
CV_Set(&cv_analog, cv_analog->default);
CV_Set(&cv_usemouse, cv_usemouse.defaultvalue);
CV_Set(&cv_alwaysfreelook, cv_alwaysfreelook.defaultvalue);
CV_Set(&cv_mousemove, cv_mousemove.defaultvalue);
CV_Set(&cv_analog, cv_analog.defaultvalue);
}
else
CV_SaveVariables(f);