aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSignpostMarv2012-09-08 12:53:30 +0100
committerJustin Clark-Casey (justincc)2012-09-12 01:26:22 +0100
commitc17965eec41e0c37f43cc3d4a7c12e52280db59d (patch)
tree6b772d5c2651cd15aaa684ca2305fb96da8cb05e
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-SC_OLD-c17965eec41e0c37f43cc3d4a7c12e52280db59d.zip
opensim-SC_OLD-c17965eec41e0c37f43cc3d4a7c12e52280db59d.tar.gz
opensim-SC_OLD-c17965eec41e0c37f43cc3d4a7c12e52280db59d.tar.bz2
opensim-SC_OLD-c17965eec41e0c37f43cc3d4a7c12e52280db59d.tar.xz
mathematically & hypothetically speaking we want to avoid negative values being written
-rw-r--r--OpenSim/Framework/RegionInfo.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs
index ded2df2..928e798 100644
--- a/OpenSim/Framework/RegionInfo.cs
+++ b/OpenSim/Framework/RegionInfo.cs
@@ -701,27 +701,27 @@ namespace OpenSim.Framework
701 701
702 config.Set("ExternalHostName", m_externalHostName); 702 config.Set("ExternalHostName", m_externalHostName);
703 703
704 if (m_nonphysPrimMin != 0) 704 if (m_nonphysPrimMin > 0)
705 config.Set("NonphysicalPrimMax", m_nonphysPrimMin); 705 config.Set("NonphysicalPrimMax", m_nonphysPrimMin);
706 706
707 if (m_nonphysPrimMax != 0) 707 if (m_nonphysPrimMax > 0)
708 config.Set("NonphysicalPrimMax", m_nonphysPrimMax); 708 config.Set("NonphysicalPrimMax", m_nonphysPrimMax);
709 709
710 if (m_physPrimMin != 0) 710 if (m_physPrimMin > 0)
711 config.Set("PhysicalPrimMax", m_physPrimMin); 711 config.Set("PhysicalPrimMax", m_physPrimMin);
712 712
713 if (m_physPrimMax != 0) 713 if (m_physPrimMax > 0)
714 config.Set("PhysicalPrimMax", m_physPrimMax); 714 config.Set("PhysicalPrimMax", m_physPrimMax);
715 715
716 config.Set("ClampPrimSize", m_clampPrimSize.ToString()); 716 config.Set("ClampPrimSize", m_clampPrimSize.ToString());
717 717
718 if (m_objectCapacity != 0) 718 if (m_objectCapacity > 0)
719 config.Set("MaxPrims", m_objectCapacity); 719 config.Set("MaxPrims", m_objectCapacity);
720 720
721 if (m_linksetCapacity != 0) 721 if (m_linksetCapacity > 0)
722 config.Set("LinksetPrims", m_linksetCapacity); 722 config.Set("LinksetPrims", m_linksetCapacity);
723 723
724 if (m_agentCapacity != 0) 724 if (m_agentCapacity > 0)
725 config.Set("MaxAgents", m_agentCapacity); 725 config.Set("MaxAgents", m_agentCapacity);
726 726
727 if (ScopeID != UUID.Zero) 727 if (ScopeID != UUID.Zero)