Browse Source

engine: server: check if player can hear other before sending voicedata

pull/2/head
Alibek Omarov 2 years ago
parent
commit
7b74015c4d
  1. 10
      engine/server/sv_client.c

10
engine/server/sv_client.c

@ -3396,8 +3396,14 @@ void SV_ParseVoiceData( sv_client_t *cl, sizebuf_t *msg ) @@ -3396,8 +3396,14 @@ void SV_ParseVoiceData( sv_client_t *cl, sizebuf_t *msg )
for( i = 0, cur = svs.clients; i < svs.maxclients; i++, cur++ )
{
if ( cur->state < cs_connected && cl != cur )
continue;
if( cl != cur )
{
if( cur->state < cs_connected )
continue;
if( !FBitSet( cur->listeners, BIT( client )))
continue;
}
length = size;

Loading…
Cancel
Save