mantis 8035: fix number of prims use to be from all owned parcels

This commit is contained in:
UbitUmarov
2018-11-08 21:52:16 +00:00
parent fe63b4c97d
commit 492b9e3326

View File

@@ -107,7 +107,6 @@ namespace OpenSim.Region.OptionalModules
private bool CanRezObject(int objectCount, UUID ownerID, Vector3 objectPosition)
{
ILandObject lo = m_scene.LandChannel.GetLandObject(objectPosition.X, objectPosition.Y);
string response = DoCommonChecks(objectCount, ownerID, lo);
@@ -200,7 +199,7 @@ namespace OpenSim.Region.OptionalModules
string response = null;
int OwnedParcelsCapacity = lo.GetSimulatorMaxPrimCount();
if ((objectCount + lo.PrimCounts.Total) > OwnedParcelsCapacity)
if ((objectCount + lo.PrimCounts.Simulator) > OwnedParcelsCapacity)
{
response = "Unable to rez object because the parcel is full";
}