- Fixed: When following links in S_StartSound(), the function used sfx

instead of S_Sfx as the array base for getting the NearLimit.


SVN r1023 (trunk)
This commit is contained in:
Randy Heit 2008-06-06 02:34:14 +00:00
commit cf9ce3b054
2 changed files with 6 additions and 4 deletions

View file

@ -709,17 +709,17 @@ static void S_StartSound (fixed_t *pt, AActor *mover, int channel,
if (sfx->bPlayerReserve)
{
sound_id = S_FindSkinnedSound (mover, sound_id);
NearLimit = sfx[sound_id].NearLimit;
NearLimit = S_sfx[sound_id].NearLimit;
}
else if (sfx->bRandomHeader)
{
sound_id = S_PickReplacement (sound_id);
if (NearLimit < 0) NearLimit = sfx[sound_id].NearLimit;
if (NearLimit < 0) NearLimit = S_sfx[sound_id].NearLimit;
}
else
{
sound_id = sfx->link;
if (NearLimit < 0) NearLimit = sfx[sound_id].NearLimit;
if (NearLimit < 0) NearLimit = S_sfx[sound_id].NearLimit;
}
sfx = &S_sfx[sound_id];
}