mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-25 13:55:36 -04:00
ignore request to play no sound
i.e. let S_StartSound() return gracefully if (sfx_id == sfx_None).
This commit is contained in:
parent
0ec3c79389
commit
d70fadda94
@ -290,6 +290,10 @@ void S_StartSound(const mobj_t *origin, int sfx_id)
|
||||
if(!snd_card || nosfxparm)
|
||||
return;
|
||||
|
||||
// [FG] ignore request to play no sound
|
||||
if(sfx_id == sfx_None)
|
||||
return;
|
||||
|
||||
#ifdef RANGECHECK
|
||||
// check for bogus sound #
|
||||
if(sfx_id < 1 || sfx_id > NUMSFX)
|
||||
|
Loading…
x
Reference in New Issue
Block a user