diff --git a/engine/client/voice.c b/engine/client/voice.c index cfaebd91..6862c285 100644 --- a/engine/client/voice.c +++ b/engine/client/voice.c @@ -79,7 +79,7 @@ Does proper entity index range checking and helps to avoid mess with off-by-one */ static voice_status_t *Voice_GetPlayerStatus( int playerent ) { - if ( playerent < 1 || playerent > MAX_CLIENTS ) + if( playerent < 1 || playerent > MAX_CLIENTS ) { Con_Printf( S_ERROR "%s: detected out-of-range player entity index\n", __func__ ); return NULL; @@ -832,10 +832,9 @@ Sends notification to user dll and zeroes timeouts for this client ========================= */ -void Voice_StatusAck( voice_status_t *status, int playerIndex ) +static void Voice_StatusAck( voice_status_t *status, int playerIndex ) { - if( !status->talking_ack ) - Voice_Status( playerIndex, true ); + Voice_Status( playerIndex, true ); status->talking_ack = true; status->talking_timeout = 0.0; diff --git a/engine/client/voice.h b/engine/client/voice.h index bbb77d7c..704336fa 100644 --- a/engine/client/voice.h +++ b/engine/client/voice.h @@ -128,7 +128,6 @@ void Voice_RecordStop( void ); void Voice_RecordStart( void ); void Voice_Disconnect( void ); void Voice_AddIncomingData( int ent, const byte *data, uint size, uint frames ); -void Voice_StatusAck( voice_status_t *status, int playerIndex ); void Voice_StartChannel( uint samples, byte *data, int entnum ); #endif // VOICE_H