]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_demo.c
Implement Con_Error(f) and Con_Warn(f), error and warning, for prettier colors
[xonotic/darkplaces.git] / cl_demo.c
index 37ca912e1431323784b5e263f79c337417780c23..36fd3ad813bc1ddd25ce646cb4d2d567f3d4398e 100644 (file)
--- a/cl_demo.c
+++ b/cl_demo.c
@@ -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;
        }