- Fixed HITTARGET, HITMASTER, HITTRACER, crash and xdeath states being broken on bouncing actors that die/explode.

This commit is contained in:
Major Cooke 2017-01-27 10:21:22 -06:00 committed by Christoph Oelckers
commit 46ee2c5ec6
2 changed files with 9 additions and 6 deletions

View file

@ -3535,9 +3535,9 @@ bool P_BounceActor(AActor *mo, AActor *BlockingMobj, bool ontop)
if (mo->bouncecount>0 && --mo->bouncecount == 0)
{
if (mo->flags & MF_MISSILE)
P_ExplodeMissile(mo, nullptr, nullptr);
P_ExplodeMissile(mo, nullptr, BlockingMobj);
else
mo->CallDie(nullptr, nullptr);
mo->CallDie(BlockingMobj, nullptr);
return true;
}