X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=sv_demo.c;h=08ebe8411bb0e8615fef4bed77fd99d8ce0a8479;hb=7c62e71683de5672379f033664504eb10d431544;hp=cc94a2c05aa5d1e6d41b04031651060d41bdc77e;hpb=cfee52a1ec9db338098789cae89ae5cf1f7a6fbf;p=xonotic%2Fdarkplaces.git diff --git a/sv_demo.c b/sv_demo.c index cc94a2c0..08ebe841 100644 --- a/sv_demo.c +++ b/sv_demo.c @@ -22,14 +22,14 @@ void SV_StartDemoRecording(client_t *client, const char *filename, int forcetrac client->sv_demo_file = FS_OpenRealFile(name, "wb", false); if(!client->sv_demo_file) { - Con_Print("ERROR: couldn't open.\n"); + Con_Print(CON_ERROR "ERROR: couldn't open.\n"); return; } FS_Printf(client->sv_demo_file, "%i\n", forcetrack); } -void SV_WriteDemoMessage(client_t *client, sizebuf_t *sendbuffer, qboolean clienttoserver) +void SV_WriteDemoMessage(client_t *client, sizebuf_t *sendbuffer, qbool clienttoserver) { prvm_prog_t *prog = SVVM_prog; int len, i; @@ -83,7 +83,7 @@ void SV_WriteNetnameIntoDemo(client_t *client) { // This "pseudo packet" is written so a program can easily find out whose demo this is sizebuf_t buf; - unsigned char bufdata[128]; + unsigned char bufdata[MAX_SCOREBOARDNAME + 64]; if(client->sv_demo_file == NULL) return;