mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 17:22:12 +00:00
Fix egg guard shields being endlessly killed by lasers. Simply make sure they have health first before killing them!
This commit is contained in:
parent
45fdfd9f37
commit
ad30c41179
1 changed files with 4 additions and 0 deletions
|
@ -5342,6 +5342,10 @@ void T_LaserFlash(laserthink_t *flash)
|
||||||
&& thing->flags & MF_BOSS)
|
&& thing->flags & MF_BOSS)
|
||||||
continue; // Don't hurt bosses
|
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);
|
top = P_GetSpecialTopZ(thing, sourcesec, sector);
|
||||||
bottom = P_GetSpecialBottomZ(thing, sourcesec, sector);
|
bottom = P_GetSpecialBottomZ(thing, sourcesec, sector);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue