From: divverent Date: Sun, 16 Aug 2009 11:26:44 +0000 (+0000) Subject: fix reset of capturevideo fps X-Git-Tag: xonotic-v0.1.0preview~1514 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bd730d557d15a38a07b68233590a389bcd7be2d3;p=xonotic%2Fdarkplaces.git fix reset of capturevideo fps git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9115 d7cf8633-e32d-0410-b094-e92efae38249 --- 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)