Allow Emerald pickup while instawhip charging

This commit is contained in:
Sally Coolatta 2024-04-09 20:00:27 -04:00
parent cd9d8d59db
commit 5d452ff74f

View file

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