mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 01:21:17 +00:00
Fixed some incorrect parentheses in S_PlaySoundPitch.
This commit is contained in:
parent
3c71f23afd
commit
24a11f7a9a
1 changed files with 2 additions and 2 deletions
|
@ -444,7 +444,7 @@ void S_PlaySoundPitch(AActor *a, int chan, EChanFlags flags, FSoundID sid, float
|
||||||
|
|
||||||
if (!(flags & CHANF_LOCAL))
|
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);
|
S_SoundPitchActor(a, chan, flags, sid, vol, atten, pitch);
|
||||||
}
|
}
|
||||||
|
@ -453,7 +453,7 @@ void S_PlaySoundPitch(AActor *a, int chan, EChanFlags flags, FSoundID sid, float
|
||||||
{
|
{
|
||||||
if (a->CheckLocalView())
|
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);
|
S_SoundPitch(chan, flags, sid, vol, ATTN_NONE, pitch);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue