- fixed undefined behavior with unpositioned but attenuated sounds.

This commit is contained in:
Christoph Oelckers 2020-02-22 17:23:23 +01:00
parent 39c96d58c6
commit 8a085c0af9

View file

@ -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;
}