]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_parse.c
demo recording: stuff csprogs.dat files into .dem files so demos can always be played...
[xonotic/darkplaces.git] / cl_parse.c
index 6b8e372ae3289a8024b75ed23d813f4a6ce21f25..d6423d1bb28d64668aed0794d1374ec5faa203f0 100644 (file)
@@ -424,6 +424,7 @@ static void CL_SetupWorldModel(void)
        if (cl.loadcsqc)
        {
                cl.loadcsqc = false;
+
                CL_VM_Init();
        }
 }
@@ -1644,6 +1645,7 @@ void CL_ParseServerInfo (void)
                        cls.forcetrack = -1;
                        FS_Printf (cls.demofile, "%i\n", cls.forcetrack);
                        cls.demorecording = true;
+                       strlcpy(cls.demoname, demofile, sizeof(cls.demoname));
                }
                else
                        Con_Print ("ERROR: couldn't open.\n");