From d28b1615cfb027a9b17e1d927a97ba77894cef76 Mon Sep 17 00:00:00 2001 From: James R Date: Thu, 9 Mar 2023 03:52:56 -0800 Subject: [PATCH] Don't let mine explosion's own hitbox receive hitlag Don't extend the time that its hitbox remains. --- src/k_collide.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/k_collide.c b/src/k_collide.c index 307d7c85d..b6ba1aa63 100644 --- a/src/k_collide.c +++ b/src/k_collide.c @@ -313,6 +313,10 @@ tic_t K_MineExplodeAttack(mobj_t *actor, fixed_t size, boolean spin) // Set this flag to ensure that the inital action won't be triggered twice. actor->flags2 |= MF2_DEBRIS; + // Set this flag to ensure the hitbox timer doesn't get extended with every player hit + actor->flags |= MF_NOHITLAGFORME; + actor->hitlag = 0; // same deal + if (!spin) { if (minehitlag == 0)