mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-26 06:20:16 -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)
|
if(!snd_card || nosfxparm)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// [FG] ignore request to play no sound
|
||||||
|
if(sfx_id == sfx_None)
|
||||||
|
return;
|
||||||
|
|
||||||
#ifdef RANGECHECK
|
#ifdef RANGECHECK
|
||||||
// check for bogus sound #
|
// check for bogus sound #
|
||||||
if(sfx_id < 1 || sfx_id > NUMSFX)
|
if(sfx_id < 1 || sfx_id > NUMSFX)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user