MT_FLOATINGITEM: check P_PlayerInPain before picking up power-ups

This commit is contained in:
James R 2023-06-30 00:46:52 -07:00
parent e6ba45e558
commit 609b0c0ae0

View file

@ -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);