From be27b3c0c81377171629623d2fd21670db02a9ed Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin <15944199+nekonomicon@users.noreply.github.com> Date: Wed, 29 Nov 2023 13:15:17 +0500 Subject: [PATCH] client: remove useless check. --- cl_dll/hud.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cl_dll/hud.cpp b/cl_dll/hud.cpp index aad8f645..a4de6c0a 100644 --- a/cl_dll/hud.cpp +++ b/cl_dll/hud.cpp @@ -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 );