From 5faf202b97705678befedcf0ab3fb0513b5fd12f Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 29 Jul 2020 22:40:29 +0200 Subject: [PATCH] - fixed missing speech at the end of E1L2. This was caused by a broken check for adult mode. Fixes #33. --- source/games/duke/src/sounds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/sounds.cpp b/source/games/duke/src/sounds.cpp index e0606f623..89f96e33a 100644 --- a/source/games/duke/src/sounds.cpp +++ b/source/games/duke/src/sounds.cpp @@ -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);