From b129ed8f76a647697d2db8bd116a684b940dd24e Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 3 Sep 2025 03:01:49 +0500 Subject: [PATCH] engine: voice: fix another off-by-one error, to fix server's ack status of local player talking --- engine/client/voice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/client/voice.c b/engine/client/voice.c index 6862c285..b3e45652 100644 --- a/engine/client/voice.c +++ b/engine/client/voice.c @@ -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 );