diff options
| author | Aimee Linden <aimee@lindenlab.com> | 2010-09-01 16:08:22 +0100 |
|---|---|---|
| committer | Aimee Linden <aimee@lindenlab.com> | 2010-09-01 16:08:22 +0100 |
| commit | a8b9a201d3797a341ab4bcaffef2954c2bb0e0d2 (patch) | |
| tree | 6c509491e78ed08aadab448a5f5c52bc1c4eb13b /indra/newview/llavataractions.cpp | |
| parent | 711ccfa57f5feb526bea6d3cea8d41a7079179b0 (diff) | |
| parent | 047b74c4f4727c41ae1086d18a12a9cf5aad5fce (diff) | |
VWR-22454 (EXT-8248) MERGE Can't teleport multiple friends
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)); |
