Fix item pop sfx not playing for eggman boxes and playing TWICE for everything else

The former is my bruh and the latter is probably not my
brew.
This commit is contained in:
James R 2022-09-20 06:08:00 -07:00
parent 7d87f2e1a2
commit 81eb513ef1
2 changed files with 4 additions and 4 deletions

View file

@ -171,8 +171,8 @@ Obj_SpawnItemDebrisEffects
spawn_cloud(collectible, collector, base_speed);
S_StartSound(collectible, sfx_kc2e);
S_StartSound(collectible, sfx_s1c9);
S_StartSound(spawner, sfx_kc2e);
S_StartSound(spawner, sfx_s1c9);
}
void

View file

@ -275,7 +275,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
special->momx = special->momy = special->momz = 0;
P_SetTarget(&special->target, toucher);
P_KillMobj(special, toucher, toucher, DMG_NORMAL);
break;
return;
case MT_SPHEREBOX:
if (!P_CanPickupItem(player, 0))
return;
@ -283,7 +283,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
special->momx = special->momy = special->momz = 0;
P_SetTarget(&special->target, toucher);
P_KillMobj(special, toucher, toucher, DMG_NORMAL);
break;
return;
case MT_ITEMCAPSULE:
if ((gametyperules & GTR_BUMPERS) && player->bumpers <= 0)
return;