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

This commit is contained in:
UbitUmarov
2016-10-11 01:14:53 +01:00
parent 76a2d90dad
commit 7494d7726a
2 changed files with 20 additions and 9 deletions

View File

@@ -186,8 +186,8 @@ namespace OpenSim.Region.OptionalModules
{
string response = null;
int simulatorCapacity = lo.GetSimulatorMaxPrimCount();
if ((objectCount + lo.PrimCounts.Total) > simulatorCapacity)
int OwnedParcelsCapacity = lo.GetSimulatorMaxPrimCount();
if ((objectCount + lo.PrimCounts.Total) > OwnedParcelsCapacity)
{
response = "Unable to rez object because the parcel is too full";
}