mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Add group prim count support to land properties
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user