mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +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) startflags |= SNDF_NOREVERB;
|
||||
|
||||
if (attenuation > 0)
|
||||
if (attenuation > 0 && type != SOURCE_None)
|
||||
{
|
||||
LoadSound3D(sfx, &SoundBuffer);
|
||||
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