From 366906ac51797110d7d5ff79ddfa2886a0be4973 Mon Sep 17 00:00:00 2001 From: Alexei Dobrohotov Date: Fri, 12 Jul 2019 12:31:10 +0300 Subject: [PATCH] Fix paralyzed actors' death animations --- apps/openmw/mwmechanics/actors.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwmechanics/actors.cpp b/apps/openmw/mwmechanics/actors.cpp index 5cca894e6..656694b25 100644 --- a/apps/openmw/mwmechanics/actors.cpp +++ b/apps/openmw/mwmechanics/actors.cpp @@ -1580,7 +1580,8 @@ namespace MWMechanics else if (!isPlayer) iter->first.getRefData().getBaseNode()->setNodeMask(MWRender::Mask_Actor); - if (iter->first.getClass().getCreatureStats(iter->first).isParalyzed()) + const bool isDead = iter->first.getClass().getCreatureStats(iter->first).isDead(); + if (!isDead && iter->first.getClass().getCreatureStats(iter->first).isParalyzed()) ctrl->skipAnim(); // Handle player last, in case a cell transition occurs by casting a teleportation spell