engine: voice: fix another off-by-one error, to fix server's ack status of local player talking

This commit is contained in:
Alibek Omarov
2025-09-03 03:01:49 +05:00
parent 9fda7a15cb
commit b129ed8f76

View File

@@ -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 );