mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-26 04:51:43 +00:00
Let S_StopSound, S_StopSoundByID, S_StopSoundByNum stop multiple sounds
Previously stopped only one, probably the first that started playing.
This commit is contained in:
parent
bf25bb6d85
commit
d970c9198b
1 changed files with 0 additions and 3 deletions
|
|
@ -386,7 +386,6 @@ void S_StopSoundByID(void *origin, sfxenum_t sfx_id)
|
|||
if (channels[cnum].sfxinfo == &S_sfx[sfx_id] && channels[cnum].origin == origin)
|
||||
{
|
||||
S_StopChannel(cnum);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -407,7 +406,6 @@ void S_StopSoundByNum(sfxenum_t sfxnum)
|
|||
if (channels[cnum].sfxinfo == &S_sfx[sfxnum])
|
||||
{
|
||||
S_StopChannel(cnum);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -763,7 +761,6 @@ void S_StopSound(void *origin)
|
|||
if (channels[cnum].sfxinfo && channels[cnum].origin == origin)
|
||||
{
|
||||
S_StopChannel(cnum);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue