Skip to content

Commit

Permalink
engine: client: voice: don't print about unsupported codec with empty…
Browse files Browse the repository at this point in the history
… string name
  • Loading branch information
a1batross committed Oct 10, 2024
1 parent fe2a4d0 commit bbb076c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engine/client/voice.c
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,8 @@ qboolean Voice_Init( const char *pszCodecName, int quality, qboolean preinit )
{
if( Q_strcmp( pszCodecName, VOICE_OPUS_CUSTOM_CODEC ))
{
Con_Printf( S_ERROR "Server requested unsupported codec: %s\n", pszCodecName );
if( COM_CheckStringEmpty( pszCodecName ))
Con_Printf( S_ERROR "Server requested unsupported codec: %s\n", pszCodecName );

// reset saved codec name, we won't enable voice for this connection
voice_codec_init[0] = 0;
Expand Down

0 comments on commit bbb076c

Please sign in to comment.