Don't let mine explosion's own hitbox receive hitlag

Don't extend the time that its hitbox remains.
This commit is contained in:
James R 2023-03-09 03:52:56 -08:00
parent 8c1771112c
commit d28b1615cf

View file

@ -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)