Skip to content

Commit

Permalink
Another attempt to fix stuck monsters resurrected by an arch-vile
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Oct 22, 2024
1 parent 6f36c06 commit bbc46ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/p_enemy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1418,6 +1418,9 @@ static bool PIT_VileCheck(mobj_t *thing)
corpsehit->flags &= ~MF_SOLID;
corpsehit->radius = radius;
corpsehit->height = height;

for (const struct msecnode_s *seclist = corpsehit->touching_sectorlist; seclist; seclist = seclist->m_tnext)
corpsehit->floorz = MAX(corpsehit->floorz, seclist->m_sector->floorheight);
}

return !check; // got one, so stop checking
Expand Down

0 comments on commit bbc46ae

Please sign in to comment.