From 2c5062255c4e62e91afe8b30a0f8ff2cd0df1aff Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 15 Jan 2023 09:51:21 +0100 Subject: [PATCH] - fixed bad sound check in the sound controller. --- wadsrc/static/zscript/games/duke/actors/soundcontroller.zs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/games/duke/actors/soundcontroller.zs b/wadsrc/static/zscript/games/duke/actors/soundcontroller.zs index 49009b784..501028b06 100644 --- a/wadsrc/static/zscript/games/duke/actors/soundcontroller.zs +++ b/wadsrc/static/zscript/games/duke/actors/soundcontroller.zs @@ -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();