From 296a6943e75a01c7cede5add37b20003ef5fb3cb Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 20 Nov 2010 23:47:52 +0000 Subject: [PATCH] Less spam. git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3666 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/pr_csqc.c | 1 - engine/client/snd_dma.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/engine/client/pr_csqc.c b/engine/client/pr_csqc.c index cdbc532d4..95c1817b6 100644 --- a/engine/client/pr_csqc.c +++ b/engine/client/pr_csqc.c @@ -5259,7 +5259,6 @@ void CSQC_Shutdown(void) { CSQC_ForgetThreads(); CloseProgs(csqcprogs); - Con_Printf("Closed csqc\n"); } csqcprogs = NULL; diff --git a/engine/client/snd_dma.c b/engine/client/snd_dma.c index 79346cff2..d1db6a69d 100644 --- a/engine/client/snd_dma.c +++ b/engine/client/snd_dma.c @@ -312,7 +312,7 @@ void S_Voip_Parse(void) gen = MSG_ReadByte(); seq = MSG_ReadByte(); bytes = MSG_ReadShort(); - if (bytes > sizeof(data) || !cl_voip_play.ival || !S_Speex_Init() || (sender & 0xc0)) + if (bytes > sizeof(data) || !cl_voip_play.ival || !S_Speex_Init() || (gen & 0xf0)) { MSG_ReadSkip(bytes); return; @@ -531,7 +531,7 @@ void S_Voip_Transmit(unsigned char clc, sizebuf_t *buf) if (outpos && buf->maxsize - buf->cursize >= outpos+4) { MSG_WriteByte(buf, clc); - MSG_WriteByte(buf, (s_speex.generation & 0x3f)); /*gonna leave two bits clear here...*/ + MSG_WriteByte(buf, (s_speex.generation & 0x0f)); /*gonna leave that nibble clear here... in this version, the client will ignore packets with those bits set. can use them for codec or something*/ MSG_WriteByte(buf, initseq); MSG_WriteShort(buf, outpos); SZ_Write(buf, outbuf, outpos);