X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=sv_demo.c;h=9a9cc1641feda26a1d3c4256b4f9fd540e68e4d7;hb=7e8a101c81015e0bdab9fd78704f38f39d5a8ffe;hp=f6f00d33102ec3c30968a30ff05e0c9a3e446b5a;hpb=135f08ba52321984c05e36cdf42ad81420a4d2fd;p=xonotic%2Fdarkplaces.git diff --git a/sv_demo.c b/sv_demo.c index f6f00d33..9a9cc164 100644 --- a/sv_demo.c +++ b/sv_demo.c @@ -5,6 +5,7 @@ extern cvar_t sv_autodemo_perclient_discardable; void SV_StartDemoRecording(client_t *client, const char *filename, int forcetrack) { + prvm_prog_t *prog = SVVM_prog; char name[MAX_QPATH]; if(client->sv_demo_file != NULL) @@ -30,6 +31,7 @@ void SV_StartDemoRecording(client_t *client, const char *filename, int forcetrac void SV_WriteDemoMessage(client_t *client, sizebuf_t *sendbuffer, qboolean clienttoserver) { + prvm_prog_t *prog = SVVM_prog; int len, i; float f; int temp; @@ -52,6 +54,7 @@ void SV_WriteDemoMessage(client_t *client, sizebuf_t *sendbuffer, qboolean clien void SV_StopDemoRecording(client_t *client) { + prvm_prog_t *prog = SVVM_prog; sizebuf_t buf; unsigned char bufdata[64]; @@ -80,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;