Skip to content

Commit

Permalink
client: remove useless check.
Browse files Browse the repository at this point in the history
  • Loading branch information
nekonomicon committed Nov 29, 2023
1 parent 27f45e9 commit 57067db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cl_dll/hud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand All @@ -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 );
Expand Down

0 comments on commit 57067db

Please sign in to comment.