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:
parent
780a48cd1e
commit
f18d4b4ac4
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user