Add group prim count support to land properties

This commit is contained in:
Melanie Thielker
2008-11-16 04:57:37 +00:00
parent 29eec33506
commit 5aa10a8ab1
2 changed files with 8 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ namespace OpenSim.Framework
private int _claimDate = 0;
private int _claimPrice = 0; //Unemplemented
private UUID _globalID = UUID.Zero;
private UUID _groupID = UUID.Zero; //Unemplemented
private UUID _groupID = UUID.Zero;
private int _groupPrims = 0;
private bool _isGroupOwned = false;
private byte[] _bitmap = new byte[512];

View File

@@ -827,6 +827,11 @@ namespace OpenSim.Region.Environment.Modules.World.Land
{
landData.OwnerPrims += prim_count;
}
else if (obj.GroupID == landData.GroupID ||
prim_owner == landData.GroupID)
{
landData.GroupPrims += prim_count;
}
else
{
landData.OtherPrims += prim_count;
@@ -850,7 +855,8 @@ namespace OpenSim.Region.Environment.Modules.World.Land
{
landData.OwnerPrims -= prim_count;
}
else if (prim_owner == landData.GroupID)
else if (obj.GroupID == landData.GroupID ||
prim_owner == landData.GroupID)
{
landData.GroupPrims -= prim_count;
}