This commit is contained in:
parent
6630244a6f
commit
a7949471f1
23 changed files with 110 additions and 38 deletions
|
@ -184,6 +184,7 @@ void CBasePickup::collidedWith(CThing *_thisThing)
|
|||
{
|
||||
case TYPE_PLAYER:
|
||||
collect((CPlayer*)_thisThing);
|
||||
CSoundMediator::playSfx(sfxToPlayWhenCollected());
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -339,6 +340,7 @@ void CBaseWeaponPickup::collidedWith(CThing *_thisThing)
|
|||
(!m_dontAutoPickUpUntilPlayerMovesOffMe&&player->tryingToAutomaticallyPickupWeapon()))
|
||||
{
|
||||
collect(player);
|
||||
CSoundMediator::playSfx(sfxToPlayWhenCollected());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue