client: remove useless check.

This commit is contained in:
Andrey Akhmichin 2023-11-29 13:15:17 +05:00
parent b3faab479c
commit be27b3c0c8
1 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ int __MsgFunc_PlayMP3( const char *pszName, int iSize, void *pbuf )
BEGIN_READ( pbuf, iSize );
pszSound = READ_STRING();
if( !IsXashFWGS() && gEngfuncs.pfnGetCvarPointer( "gl_overbright" ) )
if( !IsXashFWGS( ))
{
sprintf( cmd, "mp3 loop %s\n", pszSound );
gEngfuncs.pfnClientCmd( cmd );
@ -160,7 +160,7 @@ int __MsgFunc_PlayMP3( const char *pszName, int iSize, void *pbuf )
void __CmdFunc_StopMP3( void )
{
if( !IsXashFWGS() && gEngfuncs.pfnGetCvarPointer( "gl_overbright" ) )
if( !IsXashFWGS( ))
gEngfuncs.pfnClientCmd( "mp3 stop\n" );
else
gEngfuncs.pfnPrimeMusicStream( 0, 0 );