From 4874c90f8dae3f008807058d4da75c4847545805 Mon Sep 17 00:00:00 2001 From: James R Date: Fri, 30 Jun 2023 19:38:06 -0700 Subject: [PATCH] Don't pickup emeralds if in pain state --- src/p_inter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_inter.c b/src/p_inter.c index a37015029..edc48a28b 100644 --- a/src/p_inter.c +++ b/src/p_inter.c @@ -454,7 +454,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck) return; } case MT_EMERALD: - if (!P_CanPickupItem(player, 0)) + if (!P_CanPickupItem(player, 0) || P_PlayerInPain(player)) return; if (special->threshold > 0)