mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-21 03:01:36 +00:00
- fixed bad sound check in the sound controller.
This commit is contained in:
parent
fca0bdf379
commit
2c5062255c
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue