Browse Source

client: remove useless check.

thegate
Andrey Akhmichin 1 year ago
parent
commit
57067dbef5
  1. 4
      cl_dll/hud.cpp

4
cl_dll/hud.cpp

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

Loading…
Cancel
Save