ignore request to play no sound

i.e. let S_StartSound() return gracefully if (sfx_id == sfx_None).
This commit is contained in:
Fabian Greffrath 2021-07-06 08:25:55 +02:00
parent 0ec3c79389
commit d70fadda94

View File

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