S_StopSoundByID: Permit NULL origin to be stopped manually

This commit is contained in:
toaster 2023-06-09 18:36:48 +01:00
parent 341db75d34
commit ff089afad1

View file

@ -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)
{ {