mathematically & hypothetically speaking we want to avoid negative values being written
parent
4ead48f09f
commit
c17965eec4
|
@ -701,27 +701,27 @@ namespace OpenSim.Framework
|
||||||
|
|
||||||
config.Set("ExternalHostName", m_externalHostName);
|
config.Set("ExternalHostName", m_externalHostName);
|
||||||
|
|
||||||
if (m_nonphysPrimMin != 0)
|
if (m_nonphysPrimMin > 0)
|
||||||
config.Set("NonphysicalPrimMax", m_nonphysPrimMin);
|
config.Set("NonphysicalPrimMax", m_nonphysPrimMin);
|
||||||
|
|
||||||
if (m_nonphysPrimMax != 0)
|
if (m_nonphysPrimMax > 0)
|
||||||
config.Set("NonphysicalPrimMax", m_nonphysPrimMax);
|
config.Set("NonphysicalPrimMax", m_nonphysPrimMax);
|
||||||
|
|
||||||
if (m_physPrimMin != 0)
|
if (m_physPrimMin > 0)
|
||||||
config.Set("PhysicalPrimMax", m_physPrimMin);
|
config.Set("PhysicalPrimMax", m_physPrimMin);
|
||||||
|
|
||||||
if (m_physPrimMax != 0)
|
if (m_physPrimMax > 0)
|
||||||
config.Set("PhysicalPrimMax", m_physPrimMax);
|
config.Set("PhysicalPrimMax", m_physPrimMax);
|
||||||
|
|
||||||
config.Set("ClampPrimSize", m_clampPrimSize.ToString());
|
config.Set("ClampPrimSize", m_clampPrimSize.ToString());
|
||||||
|
|
||||||
if (m_objectCapacity != 0)
|
if (m_objectCapacity > 0)
|
||||||
config.Set("MaxPrims", m_objectCapacity);
|
config.Set("MaxPrims", m_objectCapacity);
|
||||||
|
|
||||||
if (m_linksetCapacity != 0)
|
if (m_linksetCapacity > 0)
|
||||||
config.Set("LinksetPrims", m_linksetCapacity);
|
config.Set("LinksetPrims", m_linksetCapacity);
|
||||||
|
|
||||||
if (m_agentCapacity != 0)
|
if (m_agentCapacity > 0)
|
||||||
config.Set("MaxAgents", m_agentCapacity);
|
config.Set("MaxAgents", m_agentCapacity);
|
||||||
|
|
||||||
if (ScopeID != UUID.Zero)
|
if (ScopeID != UUID.Zero)
|
||||||
|
|
Loading…
Reference in New Issue