mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-23 08:22:58 +00:00
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:
parent
7d87f2e1a2
commit
81eb513ef1
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue