X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=sv_demo.c;h=81f169bb64b067a7ee5a065d157e964f13284bd6;hb=1d5ee6468f876ae21eb64b12e17bb3f8ea8dd877;hp=c56274709e0bfb26166125af8e6467bdc4f60e98;hpb=2cbfd57208b7e0050bf532456dedae601670af88;p=xonotic%2Fdarkplaces.git diff --git a/sv_demo.c b/sv_demo.c index c5627470..81f169bb 100644 --- a/sv_demo.c +++ b/sv_demo.c @@ -27,13 +27,15 @@ void SV_WriteDemoMessage(client_t *client, sizebuf_t *sendbuffer, qboolean clien { int len, i; float f; + int temp; if(client->sv_demo_file == NULL) return; if(sendbuffer->cursize == 0) return; - len = LittleLong(sendbuffer->cursize | (clienttoserver ? DEMOMSG_CLIENT_TO_SERVER : 0)); + temp = sendbuffer->cursize | (clienttoserver ? DEMOMSG_CLIENT_TO_SERVER : 0); + len = LittleLong(temp); FS_Write(client->sv_demo_file, &len, 4); for(i = 0; i < 3; ++i) {