summaryrefslogtreecommitdiff
path: root/indra/newview/llagent.cpp
diff options
context:
space:
mode:
authorVadim Savchuk <vsavchuk@productengine.com>2010-01-12 20:01:10 +0200
committerVadim Savchuk <vsavchuk@productengine.com>2010-01-12 20:01:10 +0200
commit1f5e82e14023268a2d1b3076a6e788e37b2ddfdc (patch)
tree8eaf73c496230cdaf6a029ff6ae73a4934290915 /indra/newview/llagent.cpp
parent628b892a66023ec8eea4241977a64a5b86108774 (diff)
Partially fixed major bug EXT-4112 ([BSI] Number of groups not limited to 25).
Viewer now disallows joining or creating groups if the limit reached. A server-side fix is also needed. --HG-- branch : product-engine
Diffstat (limited to 'indra/newview/llagent.cpp')
-rw-r--r--indra/newview/llagent.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp
index 5e2e374df6..35b28d8ec0 100644
--- a/indra/newview/llagent.cpp
+++ b/indra/newview/llagent.cpp
@@ -5157,6 +5157,11 @@ BOOL LLAgent::setUserGroupFlags(const LLUUID& group_id, BOOL accept_notices, BOO
return FALSE;
}
+BOOL LLAgent::canJoinGroups() const
+{
+ return mGroups.count() < MAX_AGENT_GROUPS;
+}
+
LLQuaternion LLAgent::getHeadRotation()
{
if (mAvatarObject.isNull() || !mAvatarObject->mPelvisp || !mAvatarObject->mHeadp)