aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra')
-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();