mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
- fixed: Global sounds were started as 3D if anything but ATTN_NONE was used, regarding in them not playing.
This commit is contained in:
parent
ef01c34346
commit
c35ebeadff
1 changed files with 1 additions and 1 deletions
|
@ -577,7 +577,7 @@ FSoundChan *SoundEngine::StartSound(int type, const void *source,
|
||||||
if (chanflags & (CHANF_UI|CHANF_NOPAUSE)) startflags |= SNDF_NOPAUSE;
|
if (chanflags & (CHANF_UI|CHANF_NOPAUSE)) startflags |= SNDF_NOPAUSE;
|
||||||
if (chanflags & CHANF_UI) startflags |= SNDF_NOREVERB;
|
if (chanflags & CHANF_UI) startflags |= SNDF_NOREVERB;
|
||||||
|
|
||||||
if (attenuation > 0)
|
if (attenuation > 0 && type != SOURCE_None)
|
||||||
{
|
{
|
||||||
LoadSound3D(sfx, &SoundBuffer);
|
LoadSound3D(sfx, &SoundBuffer);
|
||||||
chan = (FSoundChan*)GSnd->StartSound3D (sfx->data3d, &listener, float(volume), rolloff, float(attenuation), pitch, basepriority, pos, vel, channel, startflags, NULL);
|
chan = (FSoundChan*)GSnd->StartSound3D (sfx->data3d, &listener, float(volume), rolloff, float(attenuation), pitch, basepriority, pos, vel, channel, startflags, NULL);
|
||||||
|
|
Loading…
Reference in a new issue