aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules
diff options
context:
space:
mode:
authorMelanie Thielker2008-11-16 04:57:37 +0000
committerMelanie Thielker2008-11-16 04:57:37 +0000
commit5aa10a8ab164be34d36508b2cd52e9685fc4be90 (patch)
tree09513b8aa45c36954d46433a6c3c716b739c40d5 /OpenSim/Region/Environment/Modules
parent* Abstracted some methods from SceneObjectGroup to allow them to be overridde... (diff)
downloadopensim-SC-5aa10a8ab164be34d36508b2cd52e9685fc4be90.zip
opensim-SC-5aa10a8ab164be34d36508b2cd52e9685fc4be90.tar.gz
opensim-SC-5aa10a8ab164be34d36508b2cd52e9685fc4be90.tar.bz2
opensim-SC-5aa10a8ab164be34d36508b2cd52e9685fc4be90.tar.xz
Add group prim count support to land properties
Diffstat (limited to 'OpenSim/Region/Environment/Modules')
-rw-r--r--OpenSim/Region/Environment/Modules/World/Land/LandObject.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Land/LandObject.cs b/OpenSim/Region/Environment/Modules/World/Land/LandObject.cs
index 097e55f..7929b91 100644
--- a/OpenSim/Region/Environment/Modules/World/Land/LandObject.cs
+++ b/OpenSim/Region/Environment/Modules/World/Land/LandObject.cs
@@ -827,6 +827,11 @@ namespace OpenSim.Region.Environment.Modules.World.Land
827 { 827 {
828 landData.OwnerPrims += prim_count; 828 landData.OwnerPrims += prim_count;
829 } 829 }
830 else if (obj.GroupID == landData.GroupID ||
831 prim_owner == landData.GroupID)
832 {
833 landData.GroupPrims += prim_count;
834 }
830 else 835 else
831 { 836 {
832 landData.OtherPrims += prim_count; 837 landData.OtherPrims += prim_count;
@@ -850,7 +855,8 @@ namespace OpenSim.Region.Environment.Modules.World.Land
850 { 855 {
851 landData.OwnerPrims -= prim_count; 856 landData.OwnerPrims -= prim_count;
852 } 857 }
853 else if (prim_owner == landData.GroupID) 858 else if (obj.GroupID == landData.GroupID ||
859 prim_owner == landData.GroupID)
854 { 860 {
855 landData.GroupPrims -= prim_count; 861 landData.GroupPrims -= prim_count;
856 } 862 }