- fixed missing speech at the end of E1L2.

This was caused by a broken check for adult mode.
Fixes #33.
This commit is contained in:
Christoph Oelckers 2020-07-29 22:40:29 +02:00
parent e9b3e8ae09
commit 5faf202b97

View file

@ -459,7 +459,7 @@ int S_PlaySound(int sndnum, int channel, EChanFlags flags)
if (!soundEngine->isValidSoundId(sndnum+1) || !SoundEnabled()) return -1;
int userflags = S_GetUserFlags(sndnum);
if ((!(snd_speech & 1) && (userflags & SF_TALK)) || ((userflags & SF_ADULT)))
if ((!(snd_speech & 1) && (userflags & SF_TALK)))
return -1;
int const pitch = S_GetPitch(sndnum);