Instashield: actually do height checks

This commit is contained in:
AJ Martinez 2023-05-19 15:34:54 -07:00
parent dadaab1817
commit df6c9cee73

View file

@ -745,6 +745,10 @@ static BlockItReturn_t PIT_CheckThing(mobj_t *thing)
if (tm.thing->type == MT_INSTAWHIP)
{
if (tm.thing->z > thing->z + thing->height)
return BMIT_CONTINUE; // overhead
if (tm.thing->z + tm.thing->height < thing->z)
return BMIT_CONTINUE; // underneath
K_InstaWhipCollide(tm.thing, thing);
return BMIT_CONTINUE;
}