- fixed inverted listener check when using compatibility options.

This commit is contained in:
Christoph Oelckers 2019-12-17 08:49:50 +01:00
parent 3808e85c3e
commit 0a8effaf9e

View file

@ -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;
}