Kill mine when running into it during explosion state

Fixes punting a mine if you run straight into it while
invincible.
This commit is contained in:
James R 2022-12-17 00:09:56 -08:00 committed by NepDisk
parent b3922d1316
commit ea32b85587

View file

@ -410,7 +410,7 @@ boolean K_MineCollide(mobj_t *t1, mobj_t *t2)
// Bomb punting
if ((t1->state >= &states[S_SSMINE1] && t1->state <= &states[S_SSMINE4])
|| (t1->state >= &states[S_SSMINE_DEPLOY8] && t1->state <= &states[S_SSMINE_DEPLOY13]))
|| (t1->state >= &states[S_SSMINE_DEPLOY8] && t1->state <= &states[S_SSMINE_EXPLODE2]))
{
P_KillMobj(t1, t2, t2, DMG_NORMAL);
}