Add group prim count support to land properties
parent
29eec33506
commit
5aa10a8ab1
|
@ -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];
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue