From 38742b462a222cf97d67b2f2e866d225a4000c1d Mon Sep 17 00:00:00 2001 From: Vadim Savchuk Date: Fri, 25 Dec 2009 20:28:51 +0200 Subject: Fixed normal priority bug EXT-3677 (Resident doesn't appear in the nearby voice list after enabling voice). * Avatars having voice chat disabled will not be displayed in the voice control panel. * If an avatar disables and then re-enables voice chat, it will re-appear in the VCP. * Avatars that are not in the nearby chat range anymore, will be immediately removed from the VCP (were displayed in italic for a few seconds). --HG-- branch : product-engine --- indra/newview/llavatarlist.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'indra/newview/llavatarlist.cpp') diff --git a/indra/newview/llavatarlist.cpp b/indra/newview/llavatarlist.cpp index 5317cf2cd0..b3ef6464f6 100644 --- a/indra/newview/llavatarlist.cpp +++ b/indra/newview/llavatarlist.cpp @@ -51,6 +51,12 @@ static const F32 LIT_UPDATE_PERIOD = 5; // Used to limit time spent for avatar list update per frame. static const unsigned ADD_LIMIT = 50; +bool LLAvatarList::contains(const LLUUID& id) +{ + const uuid_vector_t& ids = getIDs(); + return std::find(ids.begin(), ids.end(), id) != ids.end(); +} + void LLAvatarList::toggleIcons() { // Save the new value for new items to use. -- cgit v1.2.3