Let Drop Targets hit the thrower immediately after bouncing off a wall

This commit is contained in:
James R 2022-09-24 03:46:41 -07:00
parent de74808eaa
commit b2913b9a19

View file

@ -1791,6 +1791,8 @@ void P_XYMovement(mobj_t *mo)
{
S_StartSound(mo, mo->info->attacksound);
mo->health--;
// This prevents an item thrown at a wall from
// phasing through you on its return.
mo->threshold = 0;
}
/*FALLTHRU*/
@ -1811,6 +1813,12 @@ void P_XYMovement(mobj_t *mo)
S_StartSound(mo, sfx_s3k44); // Bubble bounce
break;
case MT_DROPTARGET:
// This prevents an item thrown at a wall from
// phasing through you on its return.
mo->threshold = 0;
break;
default:
break;
}