mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-23 18:30:50 +01:00
engine: server: check if player can hear other before sending voicedata
This commit is contained in:
parent
57c71efe53
commit
7b74015c4d
@ -3396,9 +3396,15 @@ 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;
|
||||
|
||||
// 6 is a number of bytes for other parts of message
|
||||
|
Loading…
Reference in New Issue
Block a user