Skip to content
Permalink
Browse files

Fixed some incorrect parentheses in S_PlaySoundPitch.

  • Loading branch information
Doom2fan committed Jan 4, 2020
1 parent 6ccbccc commit a588c24c4f2a4ef17838653f5d1d2c02afe464a5
Showing with 2 additions and 2 deletions.
  1. +2 −2 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);
}

0 comments on commit a588c24

Please sign in to comment.
You can’t perform that action at this time.