mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: voice: fix another off-by-one error, to fix server's ack status of local player talking
This commit is contained in:
@@ -984,7 +984,7 @@ void Voice_AddIncomingData( int ent, const byte *data, uint size, uint frames )
|
||||
return;
|
||||
|
||||
// must notify through as both local player and normal client
|
||||
if( ent == cl.playernum )
|
||||
if( ent == ( cl.playernum + 1 ))
|
||||
Voice_StatusAck( &voice.local, VOICE_LOOPBACK_INDEX );
|
||||
|
||||
status = Voice_GetPlayerStatus( ent );
|
||||
|
||||
Reference in New Issue
Block a user