1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 12:39:55 +00:00

Revert "delete death events on adding an actor to the scene"

If we go to a different cell in the exact frame of an actor's death, the death event would be lost permanently.

This reverts commit fd2c07a6f47b26469d01d05b7a284aa87f9caef2.

Conflicts:
	apps/openmw/mwmechanics/actors.cpp
This commit is contained in:
scrawl 2014-09-13 20:55:57 +02:00
parent 8625764143
commit a42e60970b

View File

@ -1044,9 +1044,6 @@ namespace MWMechanics
void Actors::addActor (const MWWorld::Ptr& ptr, bool updateImmediately)
{
// erase previous death events since we are currently only tracking them while in an active cell
ptr.getClass().getCreatureStats(ptr).clearHasDied();
removeActor(ptr);
MWRender::Animation *anim = MWBase::Environment::get().getWorld()->getAnimation(ptr);