aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/hippoLimits.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2009-09-10 02:31:50 -0500
committerJacek Antonelli2009-09-10 02:35:58 -0500
commitf57eabefa1291f4e047aa03416c9c544413b9f0e (patch)
tree25f1d75d05a8b00f3c2b7207731a9cfafdad9732 /linden/indra/newview/hippoLimits.cpp
parentMerged 'armin/grid-manager5' into login-manager (diff)
downloadmeta-impy-f57eabefa1291f4e047aa03416c9c544413b9f0e.zip
meta-impy-f57eabefa1291f4e047aa03416c9c544413b9f0e.tar.gz
meta-impy-f57eabefa1291f4e047aa03416c9c544413b9f0e.tar.bz2
meta-impy-f57eabefa1291f4e047aa03416c9c544413b9f0e.tar.xz
Fixed line endings on hippo and grid manager files.
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/hippoLimits.cpp108
1 files changed, 54 insertions, 54 deletions
diff --git a/linden/indra/newview/hippoLimits.cpp b/linden/indra/newview/hippoLimits.cpp
index 63a5899..d5deb9f 100644
--- a/linden/indra/newview/hippoLimits.cpp
+++ b/linden/indra/newview/hippoLimits.cpp
@@ -1,54 +1,54 @@
1 1
2 2
3#include "hippoLimits.h" 3#include "hippoLimits.h"
4 4
5#include "hippoGridManager.h" 5#include "hippoGridManager.h"
6 6
7#include <llerror.h> 7#include <llerror.h>
8 8
9 9
10HippoLimits *gHippoLimits = 0; 10HippoLimits *gHippoLimits = 0;
11 11
12 12
13HippoLimits::HippoLimits() 13HippoLimits::HippoLimits()
14{ 14{
15 setLimits(); 15 setLimits();
16} 16}
17 17
18 18
19void HippoLimits::setLimits() 19void HippoLimits::setLimits()
20{ 20{
21 if (gHippoGridManager->getConnectedGrid()->getPlatform() == HippoGridInfo::PLATFORM_SECONDLIFE) { 21 if (gHippoGridManager->getConnectedGrid()->getPlatform() == HippoGridInfo::PLATFORM_SECONDLIFE) {
22 setSecondLifeLimits(); 22 setSecondLifeLimits();
23 } else { 23 } else {
24 setOpenSimLimits(); 24 setOpenSimLimits();
25 } 25 }
26} 26}
27 27
28 28
29void HippoLimits::setOpenSimLimits() 29void HippoLimits::setOpenSimLimits()
30{ 30{
31 mMaxAgentGroups = 100; 31 mMaxAgentGroups = 100;
32 mMaxPrimScale = 256.0f; 32 mMaxPrimScale = 256.0f;
33 mMaxHeight = 10000.0f; 33 mMaxHeight = 10000.0f;
34 if (gHippoGridManager->getConnectedGrid()->isRenderCompat()) { 34 if (gHippoGridManager->getConnectedGrid()->isRenderCompat()) {
35 llinfos << "Using rendering compatible OpenSim limits." << llendl; 35 llinfos << "Using rendering compatible OpenSim limits." << llendl;
36 mMinHoleSize = 0.05f; 36 mMinHoleSize = 0.05f;
37 mMaxHollow = 0.95f; 37 mMaxHollow = 0.95f;
38 } else { 38 } else {
39 llinfos << "Using Hippo OpenSim limits." << llendl; 39 llinfos << "Using Hippo OpenSim limits." << llendl;
40 mMinHoleSize = 0.01f; 40 mMinHoleSize = 0.01f;
41 mMaxHollow = 0.99f; 41 mMaxHollow = 0.99f;
42 } 42 }
43} 43}
44 44
45void HippoLimits::setSecondLifeLimits() 45void HippoLimits::setSecondLifeLimits()
46{ 46{
47 llinfos << "Using Second Life limits." << llendl; 47 llinfos << "Using Second Life limits." << llendl;
48 mMaxAgentGroups = 25; 48 mMaxAgentGroups = 25;
49 mMaxPrimScale = 10.0f; 49 mMaxPrimScale = 10.0f;
50 mMaxHeight = 4096.0f; 50 mMaxHeight = 4096.0f;
51 mMinHoleSize = 0.05f; 51 mMinHoleSize = 0.05f;
52 mMaxHollow = 0.95f; 52 mMaxHollow = 0.95f;
53} 53}
54 54