mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
- fixed Exhumed's creepy sounds.
This commit is contained in:
parent
71083f2b23
commit
b4a2a5c187
1 changed files with 1 additions and 1 deletions
|
@ -559,7 +559,7 @@ void PlayFX2(unsigned short nSound, short nSprite)
|
|||
|
||||
GetSpriteSoundPitch(&nVolume, &nPitch);
|
||||
|
||||
if (nSprite)
|
||||
if (nSprite >= 0)
|
||||
{
|
||||
soundEngine->StartSound(SOURCE_Actor, &sprite[nSprite], nullptr, CHAN_BODY, CHANF_OVERLAP, nSound+1, nVolume / 255.f, ATTN_NORM, nullptr, (11025 + nPitch) / 11025.f);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue