diff options
author | Jeff Ames | 2008-06-25 14:30:28 +0000 |
---|---|---|
committer | Jeff Ames | 2008-06-25 14:30:28 +0000 |
commit | a2b1a1787d620f70c10221545414b41ffdfe27da (patch) | |
tree | fe356d669c4dffab062192a6676acb3cf4c6641c /OpenSim/Region/Environment | |
parent | Mantis#1584. Thank you kindly, Lulurun for a patch that: (diff) | |
download | opensim-SC-a2b1a1787d620f70c10221545414b41ffdfe27da.zip opensim-SC-a2b1a1787d620f70c10221545414b41ffdfe27da.tar.gz opensim-SC-a2b1a1787d620f70c10221545414b41ffdfe27da.tar.bz2 opensim-SC-a2b1a1787d620f70c10221545414b41ffdfe27da.tar.xz |
Minor formatting cleanup.
Diffstat (limited to '')
3 files changed, 63 insertions, 66 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs b/OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs index 49347b2..1bda2a0 100644 --- a/OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs | |||
@@ -470,7 +470,6 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain | |||
470 | } | 470 | } |
471 | } | 471 | } |
472 | 472 | ||
473 | |||
474 | /// <summary> | 473 | /// <summary> |
475 | /// Checks to see height deltas in the tainted terrain patch at xStart ,yStart | 474 | /// Checks to see height deltas in the tainted terrain patch at xStart ,yStart |
476 | /// are all within the current estate limits | 475 | /// are all within the current estate limits |
@@ -493,7 +492,7 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain | |||
493 | double bakedHeight = m_revert[x, y]; | 492 | double bakedHeight = m_revert[x, y]; |
494 | double requestedDelta = requestedHeight - bakedHeight; | 493 | double requestedDelta = requestedHeight - bakedHeight; |
495 | 494 | ||
496 | if (requestedDelta > maxDelta ) | 495 | if (requestedDelta > maxDelta) |
497 | { | 496 | { |
498 | m_channel[x, y] = bakedHeight + maxDelta; | 497 | m_channel[x, y] = bakedHeight + maxDelta; |
499 | changesLimited = true; | 498 | changesLimited = true; |
@@ -509,7 +508,6 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain | |||
509 | return changesLimited; | 508 | return changesLimited; |
510 | } | 509 | } |
511 | 510 | ||
512 | |||
513 | /// <summary> | 511 | /// <summary> |
514 | /// Sends a copy of the current terrain to the scenes clients | 512 | /// Sends a copy of the current terrain to the scenes clients |
515 | /// </summary> | 513 | /// </summary> |
@@ -589,7 +587,6 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain | |||
589 | } | 587 | } |
590 | } | 588 | } |
591 | 589 | ||
592 | |||
593 | #region Console Commands | 590 | #region Console Commands |
594 | 591 | ||
595 | private void InterfaceLoadFile(Object[] args) | 592 | private void InterfaceLoadFile(Object[] args) |
diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs index 5acad88..37da33d 100644 --- a/OpenSim/Region/Environment/Scenes/InnerScene.cs +++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs | |||
@@ -849,7 +849,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
849 | /// <returns></returns> | 849 | /// <returns></returns> |
850 | protected internal List<EntityBase> GetEntities() | 850 | protected internal List<EntityBase> GetEntities() |
851 | { | 851 | { |
852 | lock(Entities) | 852 | lock (Entities) |
853 | { | 853 | { |
854 | if (0 == Entities.Count) return null; | 854 | if (0 == Entities.Count) return null; |
855 | return new List<EntityBase>(Entities.Values); | 855 | return new List<EntityBase>(Entities.Values); |
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index d779dd7..b076855 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | |||
@@ -918,7 +918,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
918 | } | 918 | } |
919 | 919 | ||
920 | } | 920 | } |
921 | 921 | ||
922 | /// <summary> | 922 | /// <summary> |
923 | /// <see>ClientMoveTaskInventoryItem</see> | 923 | /// <see>ClientMoveTaskInventoryItem</see> |
924 | /// </summary> | 924 | /// </summary> |
@@ -927,7 +927,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
927 | /// <param name="primLocalID"></param> | 927 | /// <param name="primLocalID"></param> |
928 | /// <param name="itemID"></param> | 928 | /// <param name="itemID"></param> |
929 | public void ClientMoveTaskInventoryItem(IClientAPI remoteClient, LLUUID folderId, uint primLocalId, LLUUID itemId) | 929 | public void ClientMoveTaskInventoryItem(IClientAPI remoteClient, LLUUID folderId, uint primLocalId, LLUUID itemId) |
930 | { | 930 | { |
931 | SceneObjectPart part = GetSceneObjectPart(primLocalId); | 931 | SceneObjectPart part = GetSceneObjectPart(primLocalId); |
932 | 932 | ||
933 | if (null == part) | 933 | if (null == part) |
@@ -948,19 +948,19 @@ namespace OpenSim.Region.Environment.Scenes | |||
948 | return; | 948 | return; |
949 | } | 949 | } |
950 | 950 | ||
951 | MoveTaskInventoryItem(remoteClient, folderId, part, itemId); | 951 | MoveTaskInventoryItem(remoteClient, folderId, part, itemId); |
952 | } | 952 | } |
953 | 953 | ||
954 | /// <summary> | 954 | /// <summary> |
955 | /// <see>MoveTaskInventoryItem</see> | 955 | /// <see>MoveTaskInventoryItem</see> |
956 | /// </summary> | 956 | /// </summary> |
957 | /// <param name="remoteClient"></param> | 957 | /// <param name="remoteClient"></param> |
958 | /// <param name="folderID"></param> | 958 | /// <param name="folderID"></param> |
959 | /// <param name="part"></param> | 959 | /// <param name="part"></param> |
960 | /// <param name="itemID"></param> | 960 | /// <param name="itemID"></param> |
961 | public void MoveTaskInventoryItem(LLUUID avatarId, LLUUID folderId, SceneObjectPart part, LLUUID itemId) | 961 | public void MoveTaskInventoryItem(LLUUID avatarId, LLUUID folderId, SceneObjectPart part, LLUUID itemId) |
962 | { | 962 | { |
963 | ScenePresence avatar; | 963 | ScenePresence avatar; |
964 | 964 | ||
965 | if (TryGetAvatar(avatarId, out avatar)) | 965 | if (TryGetAvatar(avatarId, out avatar)) |
966 | { | 966 | { |
@@ -973,53 +973,53 @@ namespace OpenSim.Region.Environment.Scenes | |||
973 | "Avatar {0} cannot be found to update its prim item asset", | 973 | "Avatar {0} cannot be found to update its prim item asset", |
974 | avatarId); | 974 | avatarId); |
975 | } | 975 | } |
976 | } | 976 | } |
977 | 977 | ||
978 | /// <summary> | 978 | /// <summary> |
979 | /// Copy a task (prim) inventory item to another task (prim) | 979 | /// Copy a task (prim) inventory item to another task (prim) |
980 | /// </summary> | 980 | /// </summary> |
981 | /// <param name="destId"></param> | 981 | /// <param name="destId"></param> |
982 | /// <param name="part"></param> | 982 | /// <param name="part"></param> |
983 | /// <param name="itemId"></param> | 983 | /// <param name="itemId"></param> |
984 | public void MoveTaskInventoryItem(LLUUID destId, SceneObjectPart part, LLUUID itemId) | 984 | public void MoveTaskInventoryItem(LLUUID destId, SceneObjectPart part, LLUUID itemId) |
985 | { | 985 | { |
986 | TaskInventoryItem srcTaskItem = part.GetInventoryItem(itemId); | 986 | TaskInventoryItem srcTaskItem = part.GetInventoryItem(itemId); |
987 | 987 | ||
988 | if(srcTaskItem == null) | 988 | if (srcTaskItem == null) |
989 | { | 989 | { |
990 | // error was already logged | 990 | // error was already logged |
991 | return; | 991 | return; |
992 | } | 992 | } |
993 | 993 | ||
994 | SceneObjectPart destPart = GetSceneObjectPart(destId); | 994 | SceneObjectPart destPart = GetSceneObjectPart(destId); |
995 | 995 | ||
996 | if(destPart == null) | 996 | if (destPart == null) |
997 | { | 997 | { |
998 | m_log.ErrorFormat( | 998 | m_log.ErrorFormat( |
999 | "[PRIM INVENTORY]: " + | 999 | "[PRIM INVENTORY]: " + |
1000 | "Could not find prim for ID {0}", | 1000 | "Could not find prim for ID {0}", |
1001 | destId); | 1001 | destId); |
1002 | return; | 1002 | return; |
1003 | } | 1003 | } |
1004 | 1004 | ||
1005 | TaskInventoryItem destTaskItem = new TaskInventoryItem(); | 1005 | TaskInventoryItem destTaskItem = new TaskInventoryItem(); |
1006 | 1006 | ||
1007 | destTaskItem.ItemID = LLUUID.Random(); | 1007 | destTaskItem.ItemID = LLUUID.Random(); |
1008 | destTaskItem.CreatorID = srcTaskItem.CreatorID; | 1008 | destTaskItem.CreatorID = srcTaskItem.CreatorID; |
1009 | destTaskItem.AssetID = srcTaskItem.AssetID; | 1009 | destTaskItem.AssetID = srcTaskItem.AssetID; |
1010 | destTaskItem.GroupID = destPart.GroupID; | 1010 | destTaskItem.GroupID = destPart.GroupID; |
1011 | destTaskItem.OwnerID = destPart.OwnerID; | 1011 | destTaskItem.OwnerID = destPart.OwnerID; |
1012 | destTaskItem.ParentID = destPart.UUID; | 1012 | destTaskItem.ParentID = destPart.UUID; |
1013 | destTaskItem.ParentPartID = destPart.UUID; | 1013 | destTaskItem.ParentPartID = destPart.UUID; |
1014 | 1014 | ||
1015 | destTaskItem.BaseMask = srcTaskItem.BaseMask; | 1015 | destTaskItem.BaseMask = srcTaskItem.BaseMask; |
1016 | destTaskItem.EveryoneMask = srcTaskItem.EveryoneMask; | 1016 | destTaskItem.EveryoneMask = srcTaskItem.EveryoneMask; |
1017 | destTaskItem.GroupMask = srcTaskItem.GroupMask; | 1017 | destTaskItem.GroupMask = srcTaskItem.GroupMask; |
1018 | destTaskItem.OwnerMask = srcTaskItem.OwnerMask; | 1018 | destTaskItem.OwnerMask = srcTaskItem.OwnerMask; |
1019 | destTaskItem.NextOwnerMask = srcTaskItem.NextOwnerMask; | 1019 | destTaskItem.NextOwnerMask = srcTaskItem.NextOwnerMask; |
1020 | destTaskItem.Flags = srcTaskItem.Flags; | 1020 | destTaskItem.Flags = srcTaskItem.Flags; |
1021 | 1021 | ||
1022 | if(destPart.OwnerID != part.OwnerID) | 1022 | if (destPart.OwnerID != part.OwnerID) |
1023 | { | 1023 | { |
1024 | if (ExternalChecks.ExternalChecksPropagatePermissions()) | 1024 | if (ExternalChecks.ExternalChecksPropagatePermissions()) |
1025 | { | 1025 | { |
@@ -1035,18 +1035,18 @@ namespace OpenSim.Region.Environment.Scenes | |||
1035 | } | 1035 | } |
1036 | } | 1036 | } |
1037 | 1037 | ||
1038 | destTaskItem.Description = srcTaskItem.Description; | 1038 | destTaskItem.Description = srcTaskItem.Description; |
1039 | destTaskItem.Name = srcTaskItem.Name; | 1039 | destTaskItem.Name = srcTaskItem.Name; |
1040 | destTaskItem.InvType = srcTaskItem.InvType; | 1040 | destTaskItem.InvType = srcTaskItem.InvType; |
1041 | destTaskItem.Type = srcTaskItem.Type; | 1041 | destTaskItem.Type = srcTaskItem.Type; |
1042 | 1042 | ||
1043 | destPart.AddInventoryItem(destTaskItem); | 1043 | destPart.AddInventoryItem(destTaskItem); |
1044 | 1044 | ||
1045 | if((srcTaskItem.OwnerMask & (uint)PermissionMask.Copy) == 0) | 1045 | if ((srcTaskItem.OwnerMask & (uint)PermissionMask.Copy) == 0) |
1046 | part.RemoveInventoryItem(itemId); | 1046 | part.RemoveInventoryItem(itemId); |
1047 | 1047 | ||
1048 | } | 1048 | } |
1049 | 1049 | ||
1050 | /// <summary> | 1050 | /// <summary> |
1051 | /// Update an item in a prim (task) inventory. | 1051 | /// Update an item in a prim (task) inventory. |
1052 | /// This method does not handle scripts, <see>RezScript(IClientAPI, LLUUID, unit)</see> | 1052 | /// This method does not handle scripts, <see>RezScript(IClientAPI, LLUUID, unit)</see> |