aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.Region
diff options
context:
space:
mode:
authorMW2007-06-16 14:29:11 +0000
committerMW2007-06-16 14:29:11 +0000
commit3c8daee51027c5beb857e78c1972db0936761af3 (patch)
tree1d27af6f5af1cc2085fc4f874047fdf990f0fed5 /OpenSim/OpenSim.Region
parentVery Preliminary border crossing added to sugilite. (Note: Sugilite doesn't h... (diff)
downloadopensim-SC-3c8daee51027c5beb857e78c1972db0936761af3.zip
opensim-SC-3c8daee51027c5beb857e78c1972db0936761af3.tar.gz
opensim-SC-3c8daee51027c5beb857e78c1972db0936761af3.tar.bz2
opensim-SC-3c8daee51027c5beb857e78c1972db0936761af3.tar.xz
Some Rearranging of CommsManager.
Diffstat (limited to '')
-rw-r--r--OpenSim/OpenSim.Region/Scenes/Scene.cs6
-rw-r--r--OpenSim/OpenSim.RegionServer/ClientView.API.cs4
2 files changed, 6 insertions, 4 deletions
diff --git a/OpenSim/OpenSim.Region/Scenes/Scene.cs b/OpenSim/OpenSim.Region/Scenes/Scene.cs
index 2500ee6..c0eebd4 100644
--- a/OpenSim/OpenSim.Region/Scenes/Scene.cs
+++ b/OpenSim/OpenSim.Region/Scenes/Scene.cs
@@ -65,7 +65,7 @@ namespace OpenSim.Region.Scenes
65 public string m_datastore; 65 public string m_datastore;
66 protected AuthenticateSessionsBase authenticateHandler; 66 protected AuthenticateSessionsBase authenticateHandler;
67 protected RegionCommsHostBase regionCommsHost; 67 protected RegionCommsHostBase regionCommsHost;
68 protected RegionServerCommsManager commsManager; 68 protected CommunicationsManager commsManager;
69 69
70 public ParcelManager parcelManager; 70 public ParcelManager parcelManager;
71 public EstateManager estateManager; 71 public EstateManager estateManager;
@@ -95,7 +95,7 @@ namespace OpenSim.Region.Scenes
95 /// <param name="clientThreads">Dictionary to contain client threads</param> 95 /// <param name="clientThreads">Dictionary to contain client threads</param>
96 /// <param name="regionHandle">Region Handle for this region</param> 96 /// <param name="regionHandle">Region Handle for this region</param>
97 /// <param name="regionName">Region Name for this region</param> 97 /// <param name="regionName">Region Name for this region</param>
98 public Scene(Dictionary<uint, IClientAPI> clientThreads, RegionInfo regInfo, AuthenticateSessionsBase authen, RegionServerCommsManager commsMan) 98 public Scene(Dictionary<uint, IClientAPI> clientThreads, RegionInfo regInfo, AuthenticateSessionsBase authen, CommunicationsManager commsMan)
99 { 99 {
100 try 100 try
101 { 101 {
@@ -416,7 +416,7 @@ namespace OpenSim.Region.Scenes
416 Console.WriteLine("creating new terrain"); 416 Console.WriteLine("creating new terrain");
417 this.Terrain.hills(); 417 this.Terrain.hills();
418 418
419 this.localStorage.SaveMap(this.Terrain.getHeights1D()); 419 // this.localStorage.SaveMap(this.Terrain.getHeights1D());
420 } 420 }
421 else 421 else
422 { 422 {
diff --git a/OpenSim/OpenSim.RegionServer/ClientView.API.cs b/OpenSim/OpenSim.RegionServer/ClientView.API.cs
index b126004..0ace92c 100644
--- a/OpenSim/OpenSim.RegionServer/ClientView.API.cs
+++ b/OpenSim/OpenSim.RegionServer/ClientView.API.cs
@@ -314,13 +314,15 @@ namespace OpenSim
314 314
315 public void CrossRegion(ulong newRegionHandle, LLVector3 pos, LLVector3 lookAt, System.Net.IPAddress newRegionIP, ushort newRegionPort) 315 public void CrossRegion(ulong newRegionHandle, LLVector3 pos, LLVector3 lookAt, System.Net.IPAddress newRegionIP, ushort newRegionPort)
316 { 316 {
317 LLVector3 look = new LLVector3(lookAt.X *10, lookAt.Y *10, lookAt.Z *10);
318
317 CrossedRegionPacket newSimPack = new CrossedRegionPacket(); 319 CrossedRegionPacket newSimPack = new CrossedRegionPacket();
318 newSimPack.AgentData = new CrossedRegionPacket.AgentDataBlock(); 320 newSimPack.AgentData = new CrossedRegionPacket.AgentDataBlock();
319 newSimPack.AgentData.AgentID = this.AgentID; 321 newSimPack.AgentData.AgentID = this.AgentID;
320 newSimPack.AgentData.SessionID = this.SessionID; 322 newSimPack.AgentData.SessionID = this.SessionID;
321 newSimPack.Info = new CrossedRegionPacket.InfoBlock(); 323 newSimPack.Info = new CrossedRegionPacket.InfoBlock();
322 newSimPack.Info.Position = pos; 324 newSimPack.Info.Position = pos;
323 newSimPack.Info.LookAt = lookAt; // new LLVector3(0.0f, 0.0f, 0.0f); // copied from Avatar.cs - SHOULD BE DYNAMIC!!!!!!!!!! 325 newSimPack.Info.LookAt = look; // new LLVector3(0.0f, 0.0f, 0.0f); // copied from Avatar.cs - SHOULD BE DYNAMIC!!!!!!!!!!
324 newSimPack.RegionData = new libsecondlife.Packets.CrossedRegionPacket.RegionDataBlock(); 326 newSimPack.RegionData = new libsecondlife.Packets.CrossedRegionPacket.RegionDataBlock();
325 newSimPack.RegionData.RegionHandle = newRegionHandle; 327 newSimPack.RegionData.RegionHandle = newRegionHandle;
326 byte[] byteIP = newRegionIP.GetAddressBytes(); 328 byte[] byteIP = newRegionIP.GetAddressBytes();