forked from mirror/openmw-tes3mp
Fix so that keepPlayerAlive() will not run twice
This commit is contained in:
parent
19a20a6871
commit
1602eb3de8
1 changed files with 0 additions and 8 deletions
|
@ -1574,16 +1574,8 @@ namespace MWMechanics
|
|||
MWWorld::Ptr player = getPlayer();
|
||||
CreatureStats& stats = player.getClass().getCreatureStats(player);
|
||||
if (stats.isDead())
|
||||
{
|
||||
MWMechanics::DynamicStat<float> stat (stats.getHealth());
|
||||
if (stat.getModified()<1)
|
||||
{
|
||||
stat.setModified(1, 0);
|
||||
stats.setHealth(stat);
|
||||
}
|
||||
stats.resurrect();
|
||||
}
|
||||
}
|
||||
|
||||
bool MechanicsManager::isReadyToBlock(const MWWorld::Ptr &ptr) const
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue