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:
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…
Reference in New Issue
Block a user