Fix egg guard shields being endlessly killed by lasers. Simply make sure they have health first before killing them!

This commit is contained in:
Monster Iestyn 2017-01-07 18:02:55 +00:00
parent 45fdfd9f37
commit ad30c41179
1 changed files with 4 additions and 0 deletions

View File

@ -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);