From 3c682507e7764b73864006dd386ca854d06c783f Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 22 Aug 2022 11:44:13 +0300 Subject: [PATCH] engine: client: voice: notify client.dll about localplayer twice, through special loopback index and normal index --- engine/client/cl_parse.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/client/cl_parse.c b/engine/client/cl_parse.c index 86d32c28..de8f46f3 100644 --- a/engine/client/cl_parse.c +++ b/engine/client/cl_parse.c @@ -1714,10 +1714,11 @@ void CL_ParseVoiceData( sizebuf_t *msg ) if ( idx <= 0 || idx > cl.maxclients ) return; + // must notify through as both local player and normal client if( idx == cl.playernum + 1 ) Voice_StatusAck( &voice.local, VOICE_LOOPBACK_INDEX ); - else - Voice_StatusAck( &voice.players_status[idx], idx ); + + Voice_StatusAck( &voice.players_status[idx], idx ); if ( !size ) return;