diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/OpenSim.RegionServer/ClientView.API.cs | 4 |
1 files changed, 3 insertions, 1 deletions
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(); |