diff options
Diffstat (limited to 'linden/indra/newview/hippoLimits.cpp')
-rw-r--r-- | linden/indra/newview/hippoLimits.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/linden/indra/newview/hippoLimits.cpp b/linden/indra/newview/hippoLimits.cpp index 0777ca3..92e2ed3 100644 --- a/linden/indra/newview/hippoLimits.cpp +++ b/linden/indra/newview/hippoLimits.cpp | |||
@@ -42,7 +42,8 @@ void HippoLimits::setLimits() | |||
42 | 42 | ||
43 | void HippoLimits::setOpenSimLimits() | 43 | void HippoLimits::setOpenSimLimits() |
44 | { | 44 | { |
45 | mMaxAgentGroups = 100; | 45 | mMaxAgentGroups = gHippoGridManager->getConnectedGrid()->getMaxAgentGroups(); |
46 | if (mMaxAgentGroups < 0) mMaxAgentGroups = 50; | ||
46 | mMaxPrimScale = 256.0f; | 47 | mMaxPrimScale = 256.0f; |
47 | mMinPrimScale = 0.001f; | 48 | mMinPrimScale = 0.001f; |
48 | mMaxHeight = 10000.0f; | 49 | mMaxHeight = 10000.0f; |
@@ -50,7 +51,7 @@ void HippoLimits::setOpenSimLimits() | |||
50 | 51 | ||
51 | if (gHippoGridManager->getConnectedGrid()->isRenderCompat()) { | 52 | if (gHippoGridManager->getConnectedGrid()->isRenderCompat()) { |
52 | llinfos << "Using rendering compatible OpenSim limits" << llendl; | 53 | llinfos << "Using rendering compatible OpenSim limits" << llendl; |
53 | mMinHoleSize = 0.05f; | 54 | mMinHoleSize = 0.05f; |
54 | mMaxHollow = 0.95f; | 55 | mMaxHollow = 0.95f; |
55 | } | 56 | } |
56 | else | 57 | else |