Don't try to soften removed/null traps

This commit is contained in:
Antonio Martinez 2025-09-12 06:37:53 -04:00
parent ec70f62f36
commit 8c212a194c

View file

@ -7498,10 +7498,13 @@ mobj_t *K_ThrowKartItemEx(player_t *player, boolean missile, mobjtype_t mapthing
} }
// Missiles set as traps inflict a nocollide stumble // Missiles set as traps inflict a nocollide stumble
if (mo && !P_MobjWasRemoved(mo))
{
if (dir < 0 && (mapthing == MT_ORBINAUT || mapthing == MT_ORBINAUT_SHIELD || mapthing == MT_JAWZ || mapthing == MT_JAWZ_SHIELD || mapthing == MT_GACHABOM)) if (dir < 0 && (mapthing == MT_ORBINAUT || mapthing == MT_ORBINAUT_SHIELD || mapthing == MT_JAWZ || mapthing == MT_JAWZ_SHIELD || mapthing == MT_GACHABOM))
{ {
mo->cvmem = 1; mo->cvmem = 1;
} }
}
return mo; return mo;
} }