Height check Lightning Shield attack

This commit is contained in:
Antonio Martinez 2025-05-27 20:46:37 -04:00
parent da2a1dfd77
commit 628d9cd127

View file

@ -777,6 +777,12 @@ static inline BlockItReturn_t PIT_LightningShieldAttack(mobj_t *thing)
return BMIT_CONTINUE;
}
// see if it went over / under
if (lightningSource->z > thing->z + thing->height)
return BMIT_CONTINUE; // overhead
if (lightningSource->z + lightningSource->height < thing->z)
return BMIT_CONTINUE; // underneath
#if 0
if (P_CheckSight(lightningSource, thing) == false)
{