From 26d41145668c49c6c0ffd93abec627fb2328b736 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 15 Feb 2020 21:47:02 +0100 Subject: [PATCH] - Blood: Fix for buried zombies losing their targeting ability when being struck down while rising from the grave. Normally they change their type when being fully risen - but when attacked before that happens, never reach that code. To keep them functional, the change must be performed before performing the first target check in thinkChase. --- source/blood/src/aizomba.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/blood/src/aizomba.cpp b/source/blood/src/aizomba.cpp index f822b8e1d..711fe6aaf 100644 --- a/source/blood/src/aizomba.cpp +++ b/source/blood/src/aizomba.cpp @@ -150,6 +150,10 @@ static void thinkChase(spritetype *pSprite, XSPRITE *pXSprite) aiNewState(pSprite, pXSprite, &zombieAGoto); return; } + // If the zombie gets whacked while rising from the grave it never executes this change and if it isn't done here at the very latest, will just aimlessly run around. + if (!VanillaMode() && pSprite->type == kDudeZombieAxeBuried) + pSprite->type = kDudeZombieAxeNormal; + int nDist = approxDist(dx, dy); if (nDist <= pDudeInfo->seeDist) {