diff --git a/src/k_collide.cpp b/src/k_collide.cpp index 4e1a3451b..4abe3f269 100644 --- a/src/k_collide.cpp +++ b/src/k_collide.cpp @@ -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 - lightningDist > thing->z + thing->height) + return BMIT_CONTINUE; // overhead + if (lightningSource->z + lightningSource->height + lightningDist < thing->z) + return BMIT_CONTINUE; // underneath + #if 0 if (P_CheckSight(lightningSource, thing) == false) {