From b1c2cb3d8206b845a26fe04371dc1a1a6b2cbec2 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Tue, 6 Jan 2009 17:27:04 +0000 Subject: * minor: Move GetRandomCapsPath() to a CapsUtil class --- OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs') 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; using OpenSim.Region.Environment.Interfaces; using OpenSim.Framework; using OpenSim.Framework.Communications; +using OpenSim.Framework.Communications.Capabilities; using OpenSim.Region.Interfaces; using OSD = OpenMetaverse.StructuredData.OSD; @@ -393,7 +394,7 @@ namespace OpenSim.Region.Environment.Scenes if (newRegions.Contains(neighbour.RegionHandle)) { - agent.CapsPath = Util.GetRandomCapsPath(); + agent.CapsPath = CapsUtil.GetRandomCapsPath(); avatar.AddNeighbourRegion(neighbour.RegionHandle, agent.CapsPath); seeds.Add(neighbour.RegionHandle, agent.CapsPath); } @@ -784,7 +785,7 @@ namespace OpenSim.Region.Environment.Scenes if (Util.IsOutsideView(oldRegionX, newRegionX, oldRegionY, newRegionY)) { // brand new agent, let's create a new caps seed - agentCircuit.CapsPath = Util.GetRandomCapsPath(); + agentCircuit.CapsPath = CapsUtil.GetRandomCapsPath(); } // Let's create an agent there if one doesn't exist yet. -- cgit v1.1