Browse Source

engine: server: read full voicedata message even if voice is disabled server wide

pull/2/head
Alibek Omarov 2 years ago
parent
commit
905bbf1515
  1. 6
      engine/server/sv_client.c

6
engine/server/sv_client.c

@ -2587,11 +2587,11 @@ void SV_ParseVoiceData( sv_client_t *cl, sizebuf_t *msg )
return; return;
} }
if ( (int)sv_voiceenable.value == 0 )
return;
MSG_ReadBytes( msg, received, size ); MSG_ReadBytes( msg, received, size );
if( !sv_voiceenable.value )
return;
for( i = 0, cur = svs.clients; i < svs.maxclients; i++, cur++ ) for( i = 0, cur = svs.clients; i < svs.maxclients; i++, cur++ )
{ {
if ( cur->state < cs_connected && cl != cur ) if ( cur->state < cs_connected && cl != cur )

Loading…
Cancel
Save