From ad30c4117923b02e0cac54192d2ca40a555106df Mon Sep 17 00:00:00 2001 From: Monster Iestyn Date: Sat, 7 Jan 2017 18:02:55 +0000 Subject: [PATCH] Fix egg guard shields being endlessly killed by lasers. Simply make sure they have health first before killing them! --- src/p_spec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/p_spec.c b/src/p_spec.c index b04c55881..6fcef330c 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -5342,6 +5342,10 @@ void T_LaserFlash(laserthink_t *flash) && thing->flags & MF_BOSS) continue; // Don't hurt bosses + // Don't endlessly kill egg guard shields (or anything else for that matter) + if (thing->health <= 0) + continue; + top = P_GetSpecialTopZ(thing, sourcesec, sector); bottom = P_GetSpecialBottomZ(thing, sourcesec, sector);