mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
MT_FLOATINGITEM: check P_PlayerInPain before picking up power-ups
This commit is contained in:
parent
e6ba45e558
commit
609b0c0ae0
1 changed files with 1 additions and 1 deletions
|
|
@ -335,7 +335,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
|
|||
case MT_FLOATINGITEM: // SRB2Kart
|
||||
if (special->threshold >= FIRSTPOWERUP)
|
||||
{
|
||||
if (player->flashing || player->tumbleBounces > 0)
|
||||
if (P_PlayerInPain(player))
|
||||
return;
|
||||
|
||||
K_GivePowerUp(player, special->threshold, special->movecount);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue