From d47a95e9ba4cfbd51f8011a99ba25cbee9513093 Mon Sep 17 00:00:00 2001 From: spherallic Date: Mon, 24 Jun 2024 23:51:03 +0200 Subject: [PATCH] Fix #1230 --- src/p_user.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/p_user.c b/src/p_user.c index ff7c02bcc..ea68f9443 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -976,6 +976,9 @@ pflags_t P_GetJumpFlags(player_t *player) // boolean P_PlayerInPain(player_t *player) { + if (P_MobjWasRemoved(player->mo)) + return false; + // no silly, sliding isn't pain if (!(player->pflags & PF_SLIDING) && player->mo->state == &states[player->mo->info->painstate] && player->powers[pw_flashing]) return true;