client: loop mp3 sound if needed under GoldSource.

This commit is contained in:
Andrey Akhmichin 2023-11-29 12:54:26 +05:00
parent 591f56d412
commit 011fbd1a58

View File

@ -153,7 +153,7 @@ int __MsgFunc_PlayMP3( const char *pszName, int iSize, void *pbuf )
sprintf( path, "sound/%s", pszSound );
if( !IsXashFWGS() && gEngfuncs.pfnGetCvarPointer( "gl_overbright" ) )
{
sprintf( cmd, "mp3 play %s\n", path );
sprintf( cmd, "mp3 %s %s\n", loop ? "loop" : "play", path );
gEngfuncs.pfnClientCmd( cmd );
}
else