X-Git-Url: http://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=blobdiff_plain;f=misc%2Fsource%2Fdarkplaces-src%2Fcl_demo.c;h=f30eff8b287105afa6580c4f7bf5abd1b8c13f1f;hp=1584cb7bf19e59f462b4390be656e0637a5c7a97;hb=045633c16560b0d75e3670d753c8898d5d4dda95;hpb=887cea3dc4674191cd6fe9900fa1ddc84f31d6ee diff --git a/misc/source/darkplaces-src/cl_demo.c b/misc/source/darkplaces-src/cl_demo.c index 1584cb7b..f30eff8b 100644 --- a/misc/source/darkplaces-src/cl_demo.c +++ b/misc/source/darkplaces-src/cl_demo.c @@ -21,6 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "quakedef.h" extern cvar_t cl_capturevideo; +extern cvar_t cl_capturevideo_demo_stop; int old_vsync = 0; static void CL_FinishTimeDemo (void); @@ -78,6 +79,9 @@ Called when a demo file runs out, or the user starts a game // LordHavoc: now called only by CL_Disconnect void CL_StopPlayback (void) { + if (cl_capturevideo_demo_stop.integer) + Cvar_Set("cl_capturevideo", "0"); + if (!cls.demoplayback) return;