mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +00:00
Don't pickup power-ups if you are flashing or (s)tumbling
This commit is contained in:
parent
45d1d2cd48
commit
42f140399f
1 changed files with 3 additions and 0 deletions
|
|
@ -335,6 +335,9 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
|
||||||
case MT_FLOATINGITEM: // SRB2Kart
|
case MT_FLOATINGITEM: // SRB2Kart
|
||||||
if (special->threshold >= FIRSTPOWERUP)
|
if (special->threshold >= FIRSTPOWERUP)
|
||||||
{
|
{
|
||||||
|
if (player->flashing || player->tumbleBounces > 0)
|
||||||
|
return;
|
||||||
|
|
||||||
K_GivePowerUp(player, special->threshold, special->movecount);
|
K_GivePowerUp(player, special->threshold, special->movecount);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue