]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix reset of capturevideo fps
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 16 Aug 2009 11:26:44 +0000 (11:26 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 16 Aug 2009 11:26:44 +0000 (11:26 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9115 d7cf8633-e32d-0410-b094-e92efae38249

cl_screen.c

index 7581b256f164b397134ad9862318cd7c0b2881f2..546e34de3cf41e78fdfaa920c0dd885a93f7a8d3 100644 (file)
@@ -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)