engine: client: skip voice data for GoldSrc protocol to avoid svc_bad

This commit is contained in:
Alibek Omarov
2024-10-11 19:22:49 +03:00
parent 0c54895877
commit f90c658567
3 changed files with 19 additions and 5 deletions

View File

@@ -730,7 +730,7 @@ void CL_ParseGoldSrcServerMessage( sizebuf_t *msg )
CL_ParseVoiceInit( msg );
break;
case svc_voicedata:
CL_ParseVoiceData( msg );
CL_ParseVoiceData( msg, PROTO_GOLDSRC );
cl.frames[cl.parsecountmod].graphdata.voicebytes += MSG_GetNumBytesRead( msg ) - bufStart;
break;
case svc_resourcelocation: