1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 12:54:00 +00:00

Don't show crosshair tooltips for actors in combat

This commit is contained in:
scrawl 2014-09-09 00:47:26 +02:00
parent 780a48cd1e
commit f18d4b4ac4
2 changed files with 2 additions and 6 deletions

View File

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

View File

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