mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-31 22:45:33 +00:00
Always show tooltips for dead actors
This commit is contained in:
parent
d2ef0d362c
commit
cb916594d9
2 changed files with 2 additions and 2 deletions
|
@ -516,7 +516,7 @@ namespace MWClass
|
|||
|
||||
bool Creature::hasToolTip (const MWWorld::Ptr& ptr) const
|
||||
{
|
||||
return !ptr.getClass().getCreatureStats(ptr).getAiSequence().isInCombat();
|
||||
return !ptr.getClass().getCreatureStats(ptr).getAiSequence().isInCombat() || getCreatureStats(ptr).isDead();
|
||||
}
|
||||
|
||||
float Creature::getSpeed(const MWWorld::Ptr &ptr) const
|
||||
|
|
|
@ -1061,7 +1061,7 @@ namespace MWClass
|
|||
|
||||
bool Npc::hasToolTip (const MWWorld::Ptr& ptr) const
|
||||
{
|
||||
return !ptr.getClass().getCreatureStats(ptr).getAiSequence().isInCombat();
|
||||
return !ptr.getClass().getCreatureStats(ptr).getAiSequence().isInCombat() || getCreatureStats(ptr).isDead();
|
||||
}
|
||||
|
||||
MWGui::ToolTipInfo Npc::getToolTipInfo (const MWWorld::Ptr& ptr) const
|
||||
|
|
Loading…
Reference in a new issue