Skip to content

Commit

Permalink
- fixed bad sound check in the sound controller.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Jan 15, 2023
1 parent fca0bdf commit 2c50622
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wadsrc/static/zscript/games/duke/actors/soundcontroller.zs
Expand Up @@ -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();
Expand Down

0 comments on commit 2c50622

Please sign in to comment.