diff options
author | Loren Shih <seraph@lindenlab.com> | 2010-09-02 15:36:16 -0400 |
---|---|---|
committer | Loren Shih <seraph@lindenlab.com> | 2010-09-02 15:36:16 -0400 |
commit | 51ecc8208a1b70c9742656230df00b08e082a9c8 (patch) | |
tree | edbc91488d3cf69e308b96004ed5b12efec2b579 /indra/newview/llavataractions.cpp | |
parent | 76eb05380c619daac543872d9ad3ca40a03062c0 (diff) | |
parent | 63f2ddf377fa0fc6a666cdc1001289335d86258b (diff) |
automated merge from viewer-development root
Diffstat (limited to 'indra/newview/llavataractions.cpp')
-rw-r--r-- | indra/newview/llavataractions.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/newview/llavataractions.cpp b/indra/newview/llavataractions.cpp index eedadb962f..b9ae976e58 100644 --- a/indra/newview/llavataractions.cpp +++ b/indra/newview/llavataractions.cpp @@ -689,6 +689,7 @@ void LLAvatarActions::toggleBlock(const LLUUID& id) LLMuteList::getInstance()->add(mute); } } + // static bool LLAvatarActions::canOfferTeleport(const LLUUID& id) { @@ -704,6 +705,21 @@ bool LLAvatarActions::canOfferTeleport(const LLUUID& id) return true; } +// static +bool LLAvatarActions::canOfferTeleport(const uuid_vec_t& ids) +{ + bool result = true; + for (uuid_vec_t::const_iterator it = ids.begin(); it != ids.end(); ++it) + { + if(!canOfferTeleport(*it)) + { + result = false; + break; + } + } + return result; +} + void LLAvatarActions::inviteToGroup(const LLUUID& id) { LLFloaterGroupPicker* widget = LLFloaterReg::showTypedInstance<LLFloaterGroupPicker>("group_picker", LLSD(id)); |