Let UFO Catcher destroy Mines in radius

This commit is contained in:
James R 2023-07-02 01:20:09 -07:00
parent f2b9b70d85
commit b15a770f89

View file

@ -238,8 +238,15 @@ static inline BlockItReturn_t PIT_SSMineSearch(mobj_t *thing)
if (grenade->flags2 & MF2_DEBRIS) // don't explode twice
return BMIT_ABORT;
if (thing->type != MT_PLAYER) // Don't explode for anything but an actual player.
switch (thing->type)
{
case MT_PLAYER: // Don't explode for anything but an actual player.
case MT_SPECIAL_UFO: // Also UFO catcher
break;
default:
return BMIT_CONTINUE;
}
if (thing == grenade->target && grenade->threshold != 0) // Don't blow up at your owner instantly.
return BMIT_CONTINUE;