Merge branch 'spindash-ring-pickup' into 'master'

Don't pick up rings in spindash charge (resolves #679)

Closes #679

See merge request KartKrew/Kart!1491
This commit is contained in:
Oni 2023-09-12 04:34:34 +00:00
commit d46ad5be56

View file

@ -572,7 +572,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
return;
// Don't immediately pick up spilled rings
if (special->threshold > 0 || P_PlayerInPain(player))
if (special->threshold > 0 || P_PlayerInPain(player) || player->spindash) // player->spindash: Otherwise, players can pick up rings that are thrown out of them from invinc spindash penalty
return;
if (!(P_CanPickupItem(player, 0)))