From ff6d4b517f8f9bf1bfc9698e4cb7cf4ff5ff2646 Mon Sep 17 00:00:00 2001 From: Oz Linden Date: Thu, 28 Apr 2016 14:42:13 -0400 Subject: minor code clarity improvements --- indra/newview/llavatarrendernotifier.cpp | 11 ++++++----- indra/newview/skins/default/xui/en/notifications.xml | 2 +- indra/newview/skins/default/xui/en/strings.xml | 3 +-- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'indra') diff --git a/indra/newview/llavatarrendernotifier.cpp b/indra/newview/llavatarrendernotifier.cpp index 82f051a26c..a13e142e16 100644 --- a/indra/newview/llavatarrendernotifier.cpp +++ b/indra/newview/llavatarrendernotifier.cpp @@ -115,17 +115,18 @@ void LLAvatarRenderNotifier::displayNotification(bool show_over_limit) std::string notification_name; if (mShowOverLimitAgents) { + notification_name = "AgentComplexityWithVisibility"; + args["OVERLIMIT_MSG"] = overLimitMessage(); + + // remember what the situation was so that we only notify when it has changed mAgentsCount = mLatestAgentsCount; mOverLimitAgents = mLatestOverLimitAgents; mOverLimitPct = mLatestOverLimitPct; - - std::string notification_message = overLimitMessage(); - notification_name = "RegionAndAgentComplexity"; - args["OVERLIMIT_MSG"] = notification_message; } else { - notification_name = "AgentComplexity"; + // no change in visibility, just update complexity + notification_name = "AgentComplexity"; } if (mNotificationPtr != NULL && mNotificationPtr->getName() != notification_name) diff --git a/indra/newview/skins/default/xui/en/notifications.xml b/indra/newview/skins/default/xui/en/notifications.xml index 3c84f5edc6..47116dc8e3 100644 --- a/indra/newview/skins/default/xui/en/notifications.xml +++ b/indra/newview/skins/default/xui/en/notifications.xml @@ -3311,7 +3311,7 @@ You can use [SECOND_LIFE] normally and other people will see you correctly. diff --git a/indra/newview/skins/default/xui/en/strings.xml b/indra/newview/skins/default/xui/en/strings.xml index dca1fb9ef6..e9b7cadc96 100644 --- a/indra/newview/skins/default/xui/en/strings.xml +++ b/indra/newview/skins/default/xui/en/strings.xml @@ -2491,8 +2491,7 @@ This feature is currently in Beta. Please add your name to this [http://goo.gl/f [AGEDAYS] old Joined today - + Everyone can see you now. You may not be rendered by everyone around you. You may not be rendered by over half of those around you. -- cgit v1.2.3