mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 14:41:55 +00:00
- fixed problems with stopping sector effect sounds.
The old check only accounted for the case of trying to play a valid follow-up sound, but not for merely stopping the old one. Restored the original check that was here.
This commit is contained in:
parent
f9ab77f700
commit
b142f33edd
1 changed files with 1 additions and 2 deletions
|
@ -75,7 +75,6 @@ int callsound(int sn, int whatsprite)
|
|||
hittype[i].temp_data[0] = 0;
|
||||
}
|
||||
|
||||
|
||||
if (hittype[i].temp_data[0] == 0)
|
||||
{
|
||||
if ((flags & (SF_GLOBAL | SF_DTAG)) != SF_GLOBAL)
|
||||
|
@ -92,7 +91,7 @@ int callsound(int sn, int whatsprite)
|
|||
hittype[i].temp_data[0] = 1;
|
||||
}
|
||||
}
|
||||
else if (hival)
|
||||
else if (sprite[i].hitag < 1000)
|
||||
{
|
||||
if ((flags & SF_LOOP) || (sprite[i].hitag && sprite[i].hitag != sprite[i].lotag))
|
||||
S_StopSound(sprite[i].lotag, hittype[i].temp_data[5]);
|
||||
|
|
Loading…
Reference in a new issue