mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
Fixed some incorrect parentheses in S_PlaySoundPitch.
This commit is contained in:
parent
6ccbccc3de
commit
a588c24c4f
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue