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:
parent
21c24dedb6
commit
6b09b3ad61
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user