forked from mirror/openmw-tes3mp
Don't show Until Healed button when only fatigue is not full (Fixes #1798)
This commit is contained in:
parent
28fe81df90
commit
5335f00958
1 changed files with 1 additions and 2 deletions
|
@ -177,8 +177,7 @@ namespace MWGui
|
||||||
{
|
{
|
||||||
MWWorld::Ptr player = MWBase::Environment::get().getWorld()->getPlayerPtr();
|
MWWorld::Ptr player = MWBase::Environment::get().getWorld()->getPlayerPtr();
|
||||||
MWMechanics::CreatureStats& stats = player.getClass().getCreatureStats(player);
|
MWMechanics::CreatureStats& stats = player.getClass().getCreatureStats(player);
|
||||||
bool full = (stats.getFatigue().getCurrent() >= stats.getFatigue().getModified())
|
bool full = (stats.getHealth().getCurrent() >= stats.getHealth().getModified())
|
||||||
&& (stats.getHealth().getCurrent() >= stats.getHealth().getModified())
|
|
||||||
&& (stats.getMagicka().getCurrent() >= stats.getMagicka().getModified());
|
&& (stats.getMagicka().getCurrent() >= stats.getMagicka().getModified());
|
||||||
MWMechanics::NpcStats& npcstats = player.getClass().getNpcStats(player);
|
MWMechanics::NpcStats& npcstats = player.getClass().getNpcStats(player);
|
||||||
bool werewolf = npcstats.isWerewolf();
|
bool werewolf = npcstats.isWerewolf();
|
||||||
|
|
Loading…
Reference in a new issue