mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
- fixed undefined behavior with unpositioned but attenuated sounds.
This commit is contained in:
parent
39c96d58c6
commit
8a085c0af9
1 changed files with 1 additions and 1 deletions
|
@ -584,7 +584,7 @@ FSoundChan *SoundEngine::StartSound(int type, const void *source,
|
|||
GSnd->MarkStartTime(chan);
|
||||
chanflags |= CHANF_EVICTED;
|
||||
}
|
||||
if (attenuation > 0)
|
||||
if (attenuation > 0 && type != SOURCE_None)
|
||||
{
|
||||
chanflags |= CHANF_IS3D | CHANF_JUSTSTARTED;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue