Browse Source

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

pull/2/head
Alibek Omarov 2 years ago
parent
commit
3c682507e7
  1. 5
      engine/client/cl_parse.c

5
engine/client/cl_parse.c

@ -1714,10 +1714,11 @@ void CL_ParseVoiceData( sizebuf_t *msg ) @@ -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;

Loading…
Cancel
Save