From 97ed3650d75e1cc3e81f0be543abcc14cfe7b00e Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Mon, 7 Mar 2011 23:07:24 +0000 Subject: [PATCH] Make Video settings menu revert some settings to default values via Cvar_Reset() instead of hardcoded values (#2589) --- code/q3_ui/ui_video.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/q3_ui/ui_video.c b/code/q3_ui/ui_video.c index 7bb97109..e33d31cd 100644 --- a/code/q3_ui/ui_video.c +++ b/code/q3_ui/ui_video.c @@ -683,9 +683,11 @@ static void GraphicsOptions_ApplyChanges( void *unused, int notification ) trap_Cvar_SetValue( "r_mode", s_graphicsoptions.mode.curvalue ); trap_Cvar_SetValue( "r_fullscreen", s_graphicsoptions.fs.curvalue ); - trap_Cvar_SetValue( "r_colorbits", 0 ); - trap_Cvar_SetValue( "r_depthbits", 0 ); - trap_Cvar_SetValue( "r_stencilbits", 0 ); + + trap_Cvar_Reset("r_colorbits"); + trap_Cvar_Reset("r_depthbits"); + trap_Cvar_Reset("r_stencilbits"); + trap_Cvar_SetValue( "r_vertexLight", s_graphicsoptions.lighting.curvalue ); if ( s_graphicsoptions.geometry.curvalue == 2 )