summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-02-16 15:28:26 +0000
committerTofu Linden <tofu.linden@lindenlab.com>2010-02-16 15:28:26 +0000
commit2893ef25a2b3229c4a6d3cf643593d1350d29410 (patch)
treeaa193d75910077fed4ad1e4f8ba5f833b545c824 /indra/newview
parenta623f852cde86a290c8efda5c7b034f9b7bb75c2 (diff)
EXT-3620 Unable to locate other avatars in God mode on map via "map" button (previously "show on map")
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llpanelavatar.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llpanelavatar.cpp b/indra/newview/llpanelavatar.cpp
index 91eab9f4f1..86f101e012 100644
--- a/indra/newview/llpanelavatar.cpp
+++ b/indra/newview/llpanelavatar.cpp
@@ -455,18 +455,20 @@ void LLPanelProfileTab::onMapButtonClick()
void LLPanelProfileTab::updateButtons()
{
- bool is_avatar_online = LLAvatarTracker::instance().isBuddyOnline(getAvatarId());
+ bool is_buddy_online = LLAvatarTracker::instance().isBuddyOnline(getAvatarId());
if(LLAvatarActions::isFriend(getAvatarId()))
{
- childSetEnabled("teleport", is_avatar_online);
+ childSetEnabled("teleport", is_buddy_online);
}
else
{
childSetEnabled("teleport", true);
}
- bool enable_map_btn = is_avatar_online && gAgent.isGodlike() || is_agent_mappable(getAvatarId());
+ bool enable_map_btn = (is_buddy_online &&
+ is_agent_mappable(getAvatarId()))
+ || gAgent.isGodlike();
childSetEnabled("show_on_map_btn", enable_map_btn);
}