Fix paralyzed actors' death animations

pull/541/head
Alexei Dobrohotov 6 years ago committed by GitHub
parent 98847333c1
commit 366906ac51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save