mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-13 05:51:19 +00:00
client: loop mp3 sound if needed under GoldSource.
This commit is contained in:
parent
591f56d412
commit
011fbd1a58
@ -153,7 +153,7 @@ int __MsgFunc_PlayMP3( const char *pszName, int iSize, void *pbuf )
|
|||||||
sprintf( path, "sound/%s", pszSound );
|
sprintf( path, "sound/%s", pszSound );
|
||||||
if( !IsXashFWGS() && gEngfuncs.pfnGetCvarPointer( "gl_overbright" ) )
|
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 );
|
gEngfuncs.pfnClientCmd( cmd );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user