diff options
author | Justin Clarke Casey | 2009-01-06 17:27:04 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-01-06 17:27:04 +0000 |
commit | b1c2cb3d8206b845a26fe04371dc1a1a6b2cbec2 (patch) | |
tree | a8b3e4dc31294e0d9507dcdbd0bfae5e1a42145c /OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs | |
parent | * Remove unused CAPSService (diff) | |
download | opensim-SC_OLD-b1c2cb3d8206b845a26fe04371dc1a1a6b2cbec2.zip opensim-SC_OLD-b1c2cb3d8206b845a26fe04371dc1a1a6b2cbec2.tar.gz opensim-SC_OLD-b1c2cb3d8206b845a26fe04371dc1a1a6b2cbec2.tar.bz2 opensim-SC_OLD-b1c2cb3d8206b845a26fe04371dc1a1a6b2cbec2.tar.xz |
* minor: Move GetRandomCapsPath() to a CapsUtil class
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs index 9282f14..82b9d89 100644 --- a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs +++ b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs | |||
@@ -36,6 +36,7 @@ using log4net; | |||
36 | using OpenSim.Region.Environment.Interfaces; | 36 | using OpenSim.Region.Environment.Interfaces; |
37 | using OpenSim.Framework; | 37 | using OpenSim.Framework; |
38 | using OpenSim.Framework.Communications; | 38 | using OpenSim.Framework.Communications; |
39 | using OpenSim.Framework.Communications.Capabilities; | ||
39 | using OpenSim.Region.Interfaces; | 40 | using OpenSim.Region.Interfaces; |
40 | using OSD = OpenMetaverse.StructuredData.OSD; | 41 | using OSD = OpenMetaverse.StructuredData.OSD; |
41 | 42 | ||
@@ -393,7 +394,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
393 | 394 | ||
394 | if (newRegions.Contains(neighbour.RegionHandle)) | 395 | if (newRegions.Contains(neighbour.RegionHandle)) |
395 | { | 396 | { |
396 | agent.CapsPath = Util.GetRandomCapsPath(); | 397 | agent.CapsPath = CapsUtil.GetRandomCapsPath(); |
397 | avatar.AddNeighbourRegion(neighbour.RegionHandle, agent.CapsPath); | 398 | avatar.AddNeighbourRegion(neighbour.RegionHandle, agent.CapsPath); |
398 | seeds.Add(neighbour.RegionHandle, agent.CapsPath); | 399 | seeds.Add(neighbour.RegionHandle, agent.CapsPath); |
399 | } | 400 | } |
@@ -784,7 +785,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
784 | if (Util.IsOutsideView(oldRegionX, newRegionX, oldRegionY, newRegionY)) | 785 | if (Util.IsOutsideView(oldRegionX, newRegionX, oldRegionY, newRegionY)) |
785 | { | 786 | { |
786 | // brand new agent, let's create a new caps seed | 787 | // brand new agent, let's create a new caps seed |
787 | agentCircuit.CapsPath = Util.GetRandomCapsPath(); | 788 | agentCircuit.CapsPath = CapsUtil.GetRandomCapsPath(); |
788 | } | 789 | } |
789 | 790 | ||
790 | // Let's create an agent there if one doesn't exist yet. | 791 | // Let's create an agent there if one doesn't exist yet. |