Don't show crosshair tooltips for actors in combat

deque
scrawl 10 years ago
parent 780a48cd1e
commit f18d4b4ac4

@ -516,9 +516,7 @@ namespace MWClass
bool Creature::hasToolTip (const MWWorld::Ptr& ptr) const
{
/// \todo We don't want tooltips for Creatures in combat mode.
return true;
return !ptr.getClass().getCreatureStats(ptr).getAiSequence().isInCombat();
}
float Creature::getSpeed(const MWWorld::Ptr &ptr) const

@ -1061,9 +1061,7 @@ namespace MWClass
bool Npc::hasToolTip (const MWWorld::Ptr& ptr) const
{
/// \todo We don't want tooltips for NPCs in combat mode.
return true;
return !ptr.getClass().getCreatureStats(ptr).getAiSequence().isInCombat();
}
MWGui::ToolTipInfo Npc::getToolTipInfo (const MWWorld::Ptr& ptr) const

Loading…
Cancel
Save