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);