Give 100% of health back when Resurrecting an actor (Fixes #1877)

This commit is contained in:
scrawl 2014-09-13 20:50:49 +02:00
parent 319f4e0547
commit 8625764143

View file

@ -270,11 +270,7 @@ namespace MWMechanics
{
if (mDead)
{
if (mDynamic[0].getCurrent()<1)
{
mDynamic[0].setModified(mDynamic[0].getModified(), 1);
mDynamic[0].setCurrent(1);
}
mDynamic[0].setCurrent(mDynamic[0].getModified());
if (mDynamic[0].getCurrent()>=1)
mDead = false;
}