2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-10 20:29:35 +01:00

client: remove useless check.

This commit is contained in:
Andrey Akhmichin 2023-11-29 13:31:57 +05:00
parent 27f45e97a1
commit 57067dbef5

View File

@ -190,7 +190,7 @@ int __MsgFunc_PlayMP3( const char *pszName, int iSize, void *pbuf )
pszSound = READ_STRING();
if( !IsXashFWGS() && gEngfuncs.pfnGetCvarPointer( "gl_overbright" ) )
if( !IsXashFWGS( ))
{
sprintf( cmd, "mp3 loop sound/mp3/%s\n", pszSound );
gEngfuncs.pfnClientCmd( cmd );
@ -206,7 +206,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 );