Merge branch 'emerald-instawhip-lockout' into 'master'

Allow SS Emerald pickup while instawhip charging

See merge request KartKrew/Kart!2257
This commit is contained in:
James R. 2024-04-11 01:37:22 +00:00
commit 19c726390a

View file

@ -1050,7 +1050,7 @@ boolean Obj_UFOEmeraldCollect(mobj_t *ufo, mobj_t *toucher)
if (toucher->player != NULL)
{
if (P_CanPickupItem(toucher->player, 0) == false)
if (toucher->player->exiting || mapreset || (toucher->player->pflags & PF_ELIMINATED))
{
return false;
}