- SW: Repair issues with sector object sounds following a506b45369.

* Fixes #132
This commit is contained in:
Mitchell Richters 2020-10-18 21:23:41 +11:00
parent a8eaf3575f
commit 666fe71201

View file

@ -2405,7 +2405,7 @@ void PlaySOsound(short sectnum, short sound_num)
int i; int i;
// play idle sound - sound 1 // play idle sound - sound 1
SectIterator it(StatDamageList[sectnum]); SectIterator it(sectnum);
while ((i = it.NextIndex()) >= 0) while ((i = it.NextIndex()) >= 0)
{ {
if (sprite[i].statnum == STAT_SOUND_SPOT) if (sprite[i].statnum == STAT_SOUND_SPOT)
@ -2421,7 +2421,7 @@ void StopSOsound(short sectnum)
int i; int i;
// play idle sound - sound 1 // play idle sound - sound 1
SectIterator it(StatDamageList[sectnum]); SectIterator it(sectnum);
while ((i = it.NextIndex()) >= 0) while ((i = it.NextIndex()) >= 0)
{ {
if (sprite[i].statnum == STAT_SOUND_SPOT) if (sprite[i].statnum == STAT_SOUND_SPOT)