mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
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:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user