#include "quakedef.h"
+#ifdef CONFIG_VIDEO_CAPTURE
extern cvar_t cl_capturevideo;
+extern cvar_t cl_capturevideo_demo_stop;
+#endif
int old_vsync = 0;
static void CL_FinishTimeDemo (void);
// LordHavoc: now called only by CL_Disconnect
void CL_StopPlayback (void)
{
+#ifdef CONFIG_VIDEO_CAPTURE
+ if (cl_capturevideo_demo_stop.integer)
+ Cvar_Set("cl_capturevideo", "0");
+#endif
+
if (!cls.demoplayback)
return;
cls.td_onesecondnexttime++;
}
}
- else if (cl.time <= cl.mtime[0])
+ else if (cl.time < cl.mtime[0])
{
// don't need another message yet
return;
{
static benchmarkhistory_t *history = NULL;
if(!history)
- history = Z_Malloc(sizeof(*history) * atoi(com_argv[i + 1]));
+ history = (benchmarkhistory_t *)Z_Malloc(sizeof(*history) * atoi(com_argv[i + 1]));
history[benchmark_runs - 1].frames = frames;
history[benchmark_runs - 1].time = time;
cls.timedemo = true;
cls.td_frames = -2; // skip the first frame
cls.demonum = -1; // stop demo loop
- cls.demonum = -1; // stop demo loop
}