- 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:
parent
f08e2949dc
commit
4ffa924929
8 changed files with 51 additions and 27 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue