Use CVAR_RESETSTRING instead of CVAR_SERVER_CREATED

This commit is contained in:
smallmodel 2024-11-11 20:36:03 +01:00
parent ccca958ec5
commit 50fdbaf152
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
3 changed files with 3 additions and 2 deletions

View file

@ -1467,7 +1467,7 @@ void UI_FocusMenuIfExists(void)
currentMenu->ActivateMenu();
if (ui_newvidmode->integer == -1) {
Cvar_Get("ui_newvidmode", va("%d", r_mode), CVAR_SERVER_CREATED);
Cvar_Get("ui_newvidmode", va("%d", r_mode), CVAR_RESETSTRING);
Cvar_SetValue("ui_newvidmode", r_mode);
}
} else {