mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-09 18:31:53 +00:00
S_StopSoundByID: Permit NULL origin to be stopped manually
This commit is contained in:
parent
341db75d34
commit
ff089afad1
1 changed files with 4 additions and 0 deletions
|
|
@ -363,8 +363,12 @@ void S_StopSoundByID(void *origin, sfxenum_t sfx_id)
|
||||||
|
|
||||||
// Sounds without origin can have multiple sources, they shouldn't
|
// Sounds without origin can have multiple sources, they shouldn't
|
||||||
// be stopped by new sounds.
|
// be stopped by new sounds.
|
||||||
|
// (The above comment predates this codebase using git and cannot be BLAME'd)
|
||||||
|
// ...yeah, but if it's being stopped by ID, it's clearly an intentful effect. ~toast 090623
|
||||||
|
#if 0
|
||||||
if (!origin)
|
if (!origin)
|
||||||
return;
|
return;
|
||||||
|
#endif
|
||||||
#ifdef HW3SOUND
|
#ifdef HW3SOUND
|
||||||
if (hws_mode != HWS_DEFAULT_MODE)
|
if (hws_mode != HWS_DEFAULT_MODE)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue