1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +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
{
/// \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

View File

@ -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