mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: client: voice: rewrite Voice_IsGoldSrcMode to make it easier to understand and also fix build with Clang
This commit is contained in:
@@ -56,7 +56,13 @@ static qboolean Voice_IsGoldSrcMode( const char *codec )
|
|||||||
// it will send an empty codec
|
// it will send an empty codec
|
||||||
// however, decoding is still possible
|
// however, decoding is still possible
|
||||||
// if the voice data contains Opus
|
// if the voice data contains Opus
|
||||||
return( !COM_StringEmptyOrNULL( codec ) == 0 || Q_strstr( codec, "voice_speex" ) != NULL );
|
if( COM_StringEmptyOrNULL( codec ))
|
||||||
|
return true;
|
||||||
|
|
||||||
|
if( Q_strstr( codec, "voice_speex" ))
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user