mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-05 15:55:45 +00:00
Always show tooltips for dead actors
This commit is contained in:
parent
d2ef0d362c
commit
cb916594d9
@ -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 New Issue
Block a user