diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs index 02b94ce..bf56de2 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | |||
@@ -943,8 +943,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
943 | 943 | ||
944 | group.SetGroup(m_part.GroupID, null); | 944 | group.SetGroup(m_part.GroupID, null); |
945 | 945 | ||
946 | // TODO: Remove magic number badness | 946 | if ((rootPart.OwnerID != item.OwnerID) || (item.CurrentPermissions & (uint)PermissionMask.Slam) != 0 || (item.Flags & (uint)InventoryItemFlags.ObjectSlamPerm) != 0) |
947 | if ((rootPart.OwnerID != item.OwnerID) || (item.CurrentPermissions & 16) != 0 || (item.Flags & (uint)InventoryItemFlags.ObjectSlamPerm) != 0) // Magic number | ||
948 | { | 947 | { |
949 | if (m_part.ParentGroup.Scene.Permissions.PropagatePermissions()) | 948 | if (m_part.ParentGroup.Scene.Permissions.PropagatePermissions()) |
950 | { | 949 | { |
@@ -964,8 +963,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
964 | 963 | ||
965 | foreach (SceneObjectPart part in partList) | 964 | foreach (SceneObjectPart part in partList) |
966 | { | 965 | { |
967 | // TODO: Remove magic number badness | 966 | if ((part.OwnerID != item.OwnerID) || (item.CurrentPermissions & (uint)PermissionMask.Slam) != 0 || (item.Flags & (uint)InventoryItemFlags.ObjectSlamPerm) != 0) |
968 | if ((part.OwnerID != item.OwnerID) || (item.CurrentPermissions & 16) != 0 || (item.Flags & (uint)InventoryItemFlags.ObjectSlamPerm) != 0) // Magic number | ||
969 | { | 967 | { |
970 | part.LastOwnerID = part.OwnerID; | 968 | part.LastOwnerID = part.OwnerID; |
971 | part.OwnerID = item.OwnerID; | 969 | part.OwnerID = item.OwnerID; |