mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-31 20:22:40 +00:00
Let UFO Catcher destroy Mines in radius
This commit is contained in:
parent
f2b9b70d85
commit
b15a770f89
1 changed files with 8 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue