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 eb3250a commit fa956f0
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 @@ -189,7 +189,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 play media/%s\n", pszSound );
gEngfuncs.pfnClientCmd( cmd );
Expand All @@ -202,7 +202,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 fa956f0

Please sign in to comment.