engine: client: voice: notify client.dll about localplayer twice, through special loopback index and normal index

This commit is contained in:
Alibek Omarov 2022-08-22 11:44:13 +03:00
parent e9ae6d08b5
commit 3c682507e7
1 changed files with 3 additions and 2 deletions

View File

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