- Fixed: Hexen's fourth weapon pieces did not play the correct pickup sound,

and when they were fully assembled, they did not play the sound across the
  entire level.


SVN r1213 (trunk)
This commit is contained in:
Randy Heit 2008-09-12 01:12:40 +00:00
commit 4ffa924929
8 changed files with 51 additions and 27 deletions

View file

@ -981,10 +981,24 @@ const char *AInventory::PickupMessage ()
void AInventory::PlayPickupSound (AActor *toucher)
{
S_Sound (toucher, CHAN_PICKUP, PickupSound, 1,
(ItemFlags & IF_FANCYPICKUPSOUND) &&
(toucher == NULL || toucher->CheckLocalView (consoleplayer))
? ATTN_NONE : ATTN_NORM);
float atten;
if (ItemFlags & IF_NOATTENPICKUPSOUND)
{
atten = ATTN_NONE;
}
#if 0
else if ((ItemFlags & IF_FANCYPICKUPSOUND) &&
(toucher == NULL || toucher->CheckLocalView(consoeplayer)))
{
atten = ATTN_NONE;
}
#endif
else
{
atten = ATTN_NORM;
}
S_Sound (toucher, CHAN_PICKUP, PickupSound, 1, atten);
}
//===========================================================================