Fix invalid sector sound

This commit is contained in:
nukeykt 2019-11-15 17:04:28 +09:00 committed by Christoph Oelckers
parent 337dea13e6
commit c970aebb54
2 changed files with 4 additions and 3 deletions

View file

@ -2562,7 +2562,7 @@ void PostProcess()
if (SectSpeed[i] && SectDepth[i] && !(SectFlag[i] & kSectLava)) if (SectSpeed[i] && SectDepth[i] && !(SectFlag[i] & kSectLava))
{ {
SectSoundSect[i] = i; SectSoundSect[i] = i;
SectSound[i] = StaticSound[kSound62]; SectSound[i] = StaticSound[kSound43];
} }
else else
{ {
@ -2587,7 +2587,7 @@ void PostProcess()
{ {
var_20 = xVal + yVal; var_20 = xVal + yVal;
SectSoundSect[i] = j; SectSoundSect[i] = j;
SectSound[i] = j; SectSound[i] = StaticSound[kSound43];
} }
} }
} }

View file

@ -51,7 +51,8 @@ enum {
kSound39, kSound39,
kSound40, kSound40,
kSound41, kSound41,
kSound42 = 42, kSound42,
kSound43,
kSound47 = 47, kSound47 = 47,
kSound48 = 48, kSound48 = 48,
kSoundQTail = 50, kSoundQTail = 50,