mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 20:53:50 +00:00
Fix paralyzed actors' death animations
This commit is contained in:
parent
98847333c1
commit
366906ac51
1 changed files with 2 additions and 1 deletions
|
@ -1580,7 +1580,8 @@ namespace MWMechanics
|
||||||
else if (!isPlayer)
|
else if (!isPlayer)
|
||||||
iter->first.getRefData().getBaseNode()->setNodeMask(MWRender::Mask_Actor);
|
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();
|
ctrl->skipAnim();
|
||||||
|
|
||||||
// Handle player last, in case a cell transition occurs by casting a teleportation spell
|
// Handle player last, in case a cell transition occurs by casting a teleportation spell
|
||||||
|
|
Loading…
Reference in a new issue