1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00

Issue #68: Play death animations

This commit is contained in:
Marc Zinnschlag 2012-10-27 10:36:42 +02:00
parent 21c24dedb6
commit 6b09b3ad61

View File

@ -167,6 +167,8 @@ namespace MWMechanics
{
if (!MWWorld::Class::get (ptr).getCreatureStats (ptr).isDead())
mActors.insert (ptr);
else
MWBase::Environment::get().getWorld()->playAnimationGroup (ptr, "death1", 2);
}
void Actors::removeActor (const MWWorld::Ptr& ptr)
@ -231,7 +233,9 @@ namespace MWMechanics
++iter;
continue;
}
MWBase::Environment::get().getWorld()->playAnimationGroup (*iter, "death1", 0);
mActors.erase (iter++);
}
else