]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_demo.c
Fix dumb mistake allowing cheats to be used despite sv_cheats being 0...
[xonotic/darkplaces.git] / cl_demo.c
index 035f6f86352c67f6805358dfa8ff85e2b17200f6..36fd3ad813bc1ddd25ce646cb4d2d567f3d4398e 100644 (file)
--- a/cl_demo.c
+++ b/cl_demo.c
@@ -83,7 +83,7 @@ void CL_StopPlayback (void)
 {
 #ifdef CONFIG_VIDEO_CAPTURE
        if (cl_capturevideo_demo_stop.integer)
-               Cvar_Set("cl_capturevideo", "0");
+               Cvar_Set(&cvars_all, "cl_capturevideo", "0");
 #endif
 
        if (!cls.demoplayback)
@@ -389,7 +389,7 @@ void CL_Record_f(cmd_state_t *cmd)
        cls.demofile = FS_OpenRealFile(name, "wb", false);
        if (!cls.demofile)
        {
-               Con_Print("ERROR: couldn't open.\n");
+               Con_Error("ERROR: couldn't open.\n");
                return;
        }
        strlcpy(cls.demoname, name, sizeof(cls.demoname));
@@ -429,7 +429,7 @@ void CL_PlayDemo_f(cmd_state_t *cmd)
        f = FS_OpenVirtualFile(name, false);
        if (!f)
        {
-               Con_Printf("ERROR: couldn't open %s.\n", name);
+               Con_Errorf("ERROR: couldn't open %s.\n", name);
                cls.demonum = -1;               // stop demo loop
                return;
        }