From bd730d557d15a38a07b68233590a389bcd7be2d3 Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 16 Aug 2009 11:26:44 +0000 Subject: [PATCH] fix reset of capturevideo fps git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9115 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cl_screen.c b/cl_screen.c index 7581b256..546e34de 100644 --- a/cl_screen.c +++ b/cl_screen.c @@ -1194,7 +1194,7 @@ void SCR_CaptureVideo(void) if (cls.capturevideo.framerate != cl_capturevideo_fps.value * cl_capturevideo_framestep.integer) { Con_Printf("You can not change the video framerate while recording a video.\n"); - Cvar_SetValueQuick(&cl_capturevideo_fps, cls.capturevideo.framerate); + Cvar_SetValueQuick(&cl_capturevideo_fps, cls.capturevideo.framerate / (double) cl_capturevideo_framestep.integer); } // for AVI saving we have to make sure that sound is saved before video if (cls.capturevideo.soundrate && !cls.capturevideo.soundsampleframe) -- 2.39.2