From a588c24c4f2a4ef17838653f5d1d2c02afe464a5 Mon Sep 17 00:00:00 2001 From: Chronos Ouroboros Date: Sat, 4 Jan 2020 15:34:43 -0300 Subject: [PATCH] Fixed some incorrect parentheses in S_PlaySoundPitch. --- src/sound/s_doomsound.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sound/s_doomsound.cpp b/src/sound/s_doomsound.cpp index d6b16e61c..6ca6449e0 100644 --- a/src/sound/s_doomsound.cpp +++ b/src/sound/s_doomsound.cpp @@ -450,7 +450,7 @@ void S_PlaySoundPitch(AActor *a, int chan, EChanFlags flags, FSoundID sid, float if (!(flags & CHANF_LOCAL)) { - if (!(flags & (CHANF_NOSTOP) || !S_IsActorPlayingSomething(a, chan, sid))) + if (!(flags & CHANF_NOSTOP) || !S_IsActorPlayingSomething(a, chan, sid)) { S_SoundPitchActor(a, chan, flags, sid, vol, atten, pitch); } @@ -459,7 +459,7 @@ void S_PlaySoundPitch(AActor *a, int chan, EChanFlags flags, FSoundID sid, float { if (a->CheckLocalView()) { - if (!(flags & (CHANF_NOSTOP) || !soundEngine->IsSourcePlayingSomething(SOURCE_None, nullptr, chan, sid))) + if (!(flags & CHANF_NOSTOP) || !soundEngine->IsSourcePlayingSomething(SOURCE_None, nullptr, chan, sid)) { S_SoundPitch(chan, flags, sid, vol, ATTN_NONE, pitch); }