#include "quakedef.h"
+int old_vsync = 0;
+
void CL_FinishTimeDemo (void);
/*
FS_Write (cls.demofile, &f, 4);
}
FS_Write (cls.demofile, net_message.data, net_message.cursize);
- FS_Flush (cls.demofile);
}
/*
{
MSG_BeginReading();
CL_ParseServerMessage();
+
+ // In case the demo contains a "svc_disconnect" message
+ if (!cls.demoplayback)
+ return;
}
else
{
// open the demo file
Con_Printf("recording to %s.\n", name);
- cls.demofile = FS_Open (name, "wb", false);
+ cls.demofile = FS_Open (name, "wb", false, false);
if (!cls.demofile)
{
Con_Print("ERROR: couldn't open.\n");
FS_DefaultExtension (name, ".dem", sizeof (name));
Con_Printf("Playing demo from %s.\n", name);
- cls.demofile = FS_Open (name, "rb", false);
+ cls.demofile = FS_Open (name, "rb", false, false);
if (!cls.demofile)
{
Con_Print("ERROR: couldn't open.\n");
return;
}
- SCR_BeginLoadingPlaque ();
-
strlcpy(cls.demoname, name, sizeof(cls.demoname));
cls.demoplayback = true;
cls.state = ca_connected;
// instantly hide console and deactivate it
key_dest = key_game;
key_consoleactive = 0;
- scr_conlines = 0;
scr_con_current = 0;
cls.timedemo = true;