aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/PrimLimitsModule
diff options
context:
space:
mode:
authorUbitUmarov2016-10-11 01:14:53 +0100
committerUbitUmarov2016-10-11 01:14:53 +0100
commit7494d7726afd9f8b9762d78aead918ba7a90efa3 (patch)
treeae8a219bc88bc833b8b7aeb30a146de4bad2ccfd /OpenSim/Region/OptionalModules/PrimLimitsModule
parent remove attachment to event OnPreAgentUpdate that is doing nothing (diff)
downloadopensim-SC-7494d7726afd9f8b9762d78aead918ba7a90efa3.zip
opensim-SC-7494d7726afd9f8b9762d78aead918ba7a90efa3.tar.gz
opensim-SC-7494d7726afd9f8b9762d78aead918ba7a90efa3.tar.bz2
opensim-SC-7494d7726afd9f8b9762d78aead918ba7a90efa3.tar.xz
change math on GetParcelMaxPrimCount and GetSimulatorMaxPrimCount to reduce round errors, limit both to region max prims. consider ObjectBonus on last one also. Change a variable name in PrimLimitsModule to make it more clear
Diffstat (limited to 'OpenSim/Region/OptionalModules/PrimLimitsModule')
-rw-r--r--OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs b/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs
index 50a5fae..4ffb03b 100644
--- a/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs
+++ b/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs
@@ -186,8 +186,8 @@ namespace OpenSim.Region.OptionalModules
186 { 186 {
187 string response = null; 187 string response = null;
188 188
189 int simulatorCapacity = lo.GetSimulatorMaxPrimCount(); 189 int OwnedParcelsCapacity = lo.GetSimulatorMaxPrimCount();
190 if ((objectCount + lo.PrimCounts.Total) > simulatorCapacity) 190 if ((objectCount + lo.PrimCounts.Total) > OwnedParcelsCapacity)
191 { 191 {
192 response = "Unable to rez object because the parcel is too full"; 192 response = "Unable to rez object because the parcel is too full";
193 } 193 }