From ecac5c9c5a18241c62a25834b20be38ee0e38843 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Fri, 21 Nov 2008 18:44:48 +0000 Subject: Update svn properties, minor formatting cleanup. --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 4 ++-- OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs | 2 +- OpenSim/Region/Environment/Scenes/Scene.cs | 6 +++--- OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 7 +++---- OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 4 ++-- 5 files changed, 11 insertions(+), 12 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index b11a5e8..978a2da 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -5715,8 +5715,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP List returnIDs = new List(); - foreach(ParcelSelectObjectsPacket.ReturnIDsBlock rb in - selectPacket.ReturnIDs) + foreach (ParcelSelectObjectsPacket.ReturnIDsBlock rb in + selectPacket.ReturnIDs) { returnIDs.Add(rb.ReturnID); } diff --git a/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs index daff760..4cdff70 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs @@ -516,7 +516,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends // if it's a local friend, we don't have to do the lookup ScenePresence friendPresence = GetAnyPresenceFromAgentID(friendID); - if(friendPresence != null) + if (friendPresence != null) { m_log.Debug("[FRIEND]: Local agent detected."); diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 741c47e..221af44 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -966,7 +966,7 @@ namespace OpenSim.Region.Environment.Scenes /// public void Backup() { - lock(m_returns) + lock (m_returns) { EventManager.TriggerOnBackup(m_storageManager.DataStore); m_backingup = false; @@ -1003,7 +1003,7 @@ namespace OpenSim.Region.Environment.Scenes public void AddReturn(UUID agentID, string objectName, Vector3 location, string reason) { - lock(m_returns) + lock (m_returns) { if (m_returns.ContainsKey(agentID)) { @@ -2428,7 +2428,7 @@ namespace OpenSim.Region.Environment.Scenes if (regionInfo == null) { regionInfo = CommsManager.GridService.RequestNeighbourInfo(UserProfile.HomeRegion); - if(regionInfo != null) // home region can be away temporarily, too + if (regionInfo != null) // home region can be away temporarily, too { UserProfile.HomeRegionID = regionInfo.RegionID; CommsManager.UserService.UpdateUserProfile(UserProfile); diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index e8eaef8..f9eaa89 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs @@ -593,9 +593,8 @@ namespace OpenSim.Region.Environment.Scenes RegionHandle = m_scene.RegionInfo.RegionHandle; m_rootPart.ParentID = 0; - if (m_rootPart.LocalId==0) - m_rootPart.LocalId = m_scene.AllocateLocalId(); - + if (m_rootPart.LocalId==0) + m_rootPart.LocalId = m_scene.AllocateLocalId(); // No need to lock here since the object isn't yet in a scene foreach (SceneObjectPart part in m_parts.Values) @@ -603,7 +602,7 @@ namespace OpenSim.Region.Environment.Scenes if (Object.ReferenceEquals(part, m_rootPart)) continue; if (part.LocalId==0) - part.LocalId = m_scene.AllocateLocalId(); + part.LocalId = m_scene.AllocateLocalId(); part.ParentID = m_rootPart.LocalId; //m_log.DebugFormat("[SCENE]: Given local id {0} to part {1}, linknum {2}, parent {3} {4}", part.LocalId, part.UUID, part.LinkNum, part.ParentID, part.ParentUUID); } diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 2c501e4..888643e 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -1244,7 +1244,7 @@ if (m_shape != null) { if (userExposed) dupe.ResetIDs(linkNum); - // Move afterwards ResetIDs as it clears the localID + // Move afterwards ResetIDs as it clears the localID dupe.LocalId = localID; // This may be wrong... it might have to be applied in SceneObjectGroup to the object that's being duplicated. dupe._lastOwnerID = ObjectOwner; @@ -1928,7 +1928,7 @@ if (m_shape != null) { { UUID = UUID.Random(); LinkNum = linkNum; - LocalId = 0; + LocalId = 0; ResetInventoryIDs(); } -- cgit v1.1