From 0a8effaf9e9937ae5cbc74497437f64730ef86b5 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 17 Dec 2019 08:49:50 +0100 Subject: [PATCH] - fixed inverted listener check when using compatibility options. --- src/sound/s_doomsound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sound/s_doomsound.cpp b/src/sound/s_doomsound.cpp index 45df5e6ba..165481c70 100644 --- a/src/sound/s_doomsound.cpp +++ b/src/sound/s_doomsound.cpp @@ -345,7 +345,7 @@ static bool VerifyActorSound(AActor* ent, FSoundID& sound_id, int& channel, ECha if ((flags & CHANF_MAYBE_LOCAL) && (compatflags & COMPATF_SILENTPICKUP)) { - if (soundEngine->isListener(ent)) + if (!soundEngine->isListener(ent)) { return false; }