CL_ParseServerMessage();
if (cls.signon != SIGNONS)
- Cbuf_Execute(&cmd_client); // immediately execute svc_stufftext if in the demo before connect!
+ Cbuf_Execute((&cmd_client)->cbuf); // immediately execute svc_stufftext if in the demo before connect!
// In case the demo contains a "svc_disconnect" message
if (!cls.demoplayback)
cls.demofile = FS_OpenRealFile(name, "wb", false);
if (!cls.demofile)
{
- Con_Error("ERROR: couldn't open.\n");
+ Con_Print(CON_ERROR "ERROR: couldn't open.\n");
return;
}
strlcpy(cls.demoname, name, sizeof(cls.demoname));
f = FS_OpenVirtualFile(name, false);
if (!f)
{
- Con_Errorf("ERROR: couldn't open %s.\n", name);
+ Con_Printf(CON_ERROR "ERROR: couldn't open %s.\n", name);
cls.demonum = -1; // stop demo loop
return;
}
static int benchmark_runs = 0;
char vabuf[1024];
- cls.timedemo = false;
+ cls.timedemo = host.restless = false;
frames = cls.td_frames;
time = host.realtime - cls.td_starttime;
key_consoleactive = 0;
scr_con_current = 0;
- cls.timedemo = true;
+ cls.timedemo = host.restless = true;
cls.td_frames = -2; // skip the first frame
cls.demonum = -1; // stop demo loop
}
Cvar_RegisterVariable (&cl_autodemo);
Cvar_RegisterVariable (&cl_autodemo_nameformat);
Cvar_RegisterVariable (&cl_autodemo_delete);
-}
\ No newline at end of file
+}