- fixed bad sound check in the sound controller.

This commit is contained in:
Christoph Oelckers 2023-01-15 09:51:21 +01:00
parent fca0bdf379
commit 2c5062255c

View file

@ -45,7 +45,7 @@ class DukeSoundController : DukeActor
let sec = self.sector;
if (self.lotag < 999 && sec.lotag >= 0 && sec.lotag < ST_9_SLIDING_ST_DOOR && snd_ambience && sec.floorz != sec.ceilingz)
{
int flags = Duke.GetSoundFlags(self.lotag);
int flags = Duke.GetSoundFlags(Raze.FindSoundByResID(self.lotag));
if (flags & Duke.SF_MSFX)
{
double distance = (p.actor.pos - self.pos).Length();