aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
authorArmin Weatherwax2011-01-14 19:16:31 +0100
committerMcCabe Maxsted2011-02-27 15:07:54 -0700
commitf35ee68c66c8b483bf8b3bdfcfb413fe2ff74981 (patch)
treea7a91d23db7ecf2f1eec541393c62f136e22af48 /linden/indra/newview
parentRe-enabled rezplat for OpenSim-based grids (diff)
downloadmeta-impy-f35ee68c66c8b483bf8b3bdfcfb413fe2ff74981.zip
meta-impy-f35ee68c66c8b483bf8b3bdfcfb413fe2ff74981.tar.gz
meta-impy-f35ee68c66c8b483bf8b3bdfcfb413fe2ff74981.tar.bz2
meta-impy-f35ee68c66c8b483bf8b3bdfcfb413fe2ff74981.tar.xz
postfix: new maximum number of groups in SL.
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/hippolimits.cpp4
-rw-r--r--linden/indra/newview/llstartup.cpp7
2 files changed, 10 insertions, 1 deletions
diff --git a/linden/indra/newview/hippolimits.cpp b/linden/indra/newview/hippolimits.cpp
index 3368ba4..d4c8efb 100644
--- a/linden/indra/newview/hippolimits.cpp
+++ b/linden/indra/newview/hippolimits.cpp
@@ -85,7 +85,9 @@ void HippoLimits::setOpenSimLimits()
85void HippoLimits::setSecondLifeLimits() 85void HippoLimits::setSecondLifeLimits()
86{ 86{
87 llinfos << "Using Second Life limits" << llendl; 87 llinfos << "Using Second Life limits" << llendl;
88 mMaxAgentGroups = 25; 88 S32 max_groups = gHippoGridManager->getConnectedGrid()->getMaxAgentGroups();
89 mMaxAgentGroups = llmax(max_groups, 25);
90
89 mMaxPrimScale = 10.0f; 91 mMaxPrimScale = 10.0f;
90 mMinPrimScale = 0.01f; 92 mMinPrimScale = 0.01f;
91 mMaxHeight = 4096.0f; 93 mMaxHeight = 4096.0f;
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp
index 4bfcf52..bd94a59 100644
--- a/linden/indra/newview/llstartup.cpp
+++ b/linden/indra/newview/llstartup.cpp
@@ -1776,8 +1776,15 @@ bool idle_startup()
1776 if (!tmp.empty()) gHippoGridManager->getConnectedGrid()->setRealCurrencySymbol(tmp); 1776 if (!tmp.empty()) gHippoGridManager->getConnectedGrid()->setRealCurrencySymbol(tmp);
1777 tmp = LLUserAuth::getInstance()->getResponse("directory_fee"); 1777 tmp = LLUserAuth::getInstance()->getResponse("directory_fee");
1778 if (!tmp.empty()) gHippoGridManager->getConnectedGrid()->setDirectoryFee(atoi(tmp.c_str())); 1778 if (!tmp.empty()) gHippoGridManager->getConnectedGrid()->setDirectoryFee(atoi(tmp.c_str()));
1779
1780 //OpenSim
1779 tmp = LLUserAuth::getInstance()->getResponse("max_groups"); 1781 tmp = LLUserAuth::getInstance()->getResponse("max_groups");
1780 if (!tmp.empty()) gHippoGridManager->getConnectedGrid()->setMaxAgentGroups(atoi(tmp.c_str())); 1782 if (!tmp.empty()) gHippoGridManager->getConnectedGrid()->setMaxAgentGroups(atoi(tmp.c_str()));
1783
1784 //SL
1785 tmp = LLUserAuth::getInstance()->getResponse("max-agent-groups");
1786 if (!tmp.empty()) gHippoGridManager->getConnectedGrid()->setMaxAgentGroups(atoi(tmp.c_str()));
1787
1781 tmp = LLUserAuth::getInstance()->getResponse("VoiceConnector"); 1788 tmp = LLUserAuth::getInstance()->getResponse("VoiceConnector");
1782 if (!tmp.empty()) gHippoGridManager->getConnectedGrid()->setVoiceConnector(tmp); 1789 if (!tmp.empty()) gHippoGridManager->getConnectedGrid()->setVoiceConnector(tmp);
1783 gHippoGridManager->saveFile(); 1790 gHippoGridManager->saveFile();