From bbc46ae63685078b466191cadbb85f755fb22ec7 Mon Sep 17 00:00:00 2001 From: Brad Harding Date: Tue, 22 Oct 2024 18:25:45 +1100 Subject: [PATCH] Another attempt to fix stuck monsters resurrected by an arch-vile --- src/p_enemy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/p_enemy.c b/src/p_enemy.c index 33d41331c..e69f9e89d 100644 --- a/src/p_enemy.c +++ b/src/p_enemy.c @@ -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