Fix up the merge a bit

This commit is contained in:
scrawl 2014-01-11 02:12:41 +01:00
parent fefaec5804
commit aba72ffefe

View file

@ -797,6 +797,10 @@ namespace MWMechanics
} }
} }
if (iter->second->kill())
{
++mDeathCount[cls.getId(iter->first)];
// Apply soultrap // Apply soultrap
if (iter->first.getTypeName() == typeid(ESM::Creature).name()) if (iter->first.getTypeName() == typeid(ESM::Creature).name())
{ {
@ -809,10 +813,6 @@ namespace MWMechanics
stats.setMagicEffects(MWMechanics::MagicEffects()); stats.setMagicEffects(MWMechanics::MagicEffects());
calculateCreatureStatModifiers(iter->first, 0); calculateCreatureStatModifiers(iter->first, 0);
if (iter->second->kill())
{
++mDeathCount[cls.getId(iter->first)];
if(cls.isEssential(iter->first)) if(cls.isEssential(iter->first))
MWBase::Environment::get().getWindowManager()->messageBox("#{sKilledEssential}"); MWBase::Environment::get().getWindowManager()->messageBox("#{sKilledEssential}");
} }