diff options
Diffstat (limited to 'OpenSim/Region/Environment')
3 files changed, 14 insertions, 6 deletions
diff --git a/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs b/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs index 6d06bb5..2604b3f 100644 --- a/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs +++ b/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs | |||
@@ -322,9 +322,6 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
322 | useragent.LoginTime=Util.UnixTimeSinceEpoch(); | 322 | useragent.LoginTime=Util.UnixTimeSinceEpoch(); |
323 | useragent.LogoutTime = 0; | 323 | useragent.LogoutTime = 0; |
324 | useragent.Position=agentData.startpos; | 324 | useragent.Position=agentData.startpos; |
325 | useragent.PositionX=agentData.startpos.X; | ||
326 | useragent.PositionY=agentData.startpos.Y; | ||
327 | useragent.PositionZ=agentData.startpos.Z; | ||
328 | useragent.Region=reg.originRegionID; | 325 | useragent.Region=reg.originRegionID; |
329 | useragent.SecureSessionID=agentData.SecureSessionID; | 326 | useragent.SecureSessionID=agentData.SecureSessionID; |
330 | useragent.SessionID = agentData.SessionID; | 327 | useragent.SessionID = agentData.SessionID; |
diff --git a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs index 9ff35c0..887a8da 100644 --- a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs +++ b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs | |||
@@ -579,7 +579,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
579 | /// <param name="lookAt"></param> | 579 | /// <param name="lookAt"></param> |
580 | /// <param name="flags"></param> | 580 | /// <param name="flags"></param> |
581 | public virtual void RequestTeleportToLocation(ScenePresence avatar, ulong regionHandle, Vector3 position, | 581 | public virtual void RequestTeleportToLocation(ScenePresence avatar, ulong regionHandle, Vector3 position, |
582 | Vector3 lookAt, uint flags) | 582 | Vector3 lookAt, uint teleportFlags) |
583 | { | 583 | { |
584 | bool destRegionUp = false; | 584 | bool destRegionUp = false; |
585 | 585 | ||
@@ -604,7 +604,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
604 | position.Z = newPosZ; | 604 | position.Z = newPosZ; |
605 | } | 605 | } |
606 | avatar.ControllingClient.SendTeleportLocationStart(); | 606 | avatar.ControllingClient.SendTeleportLocationStart(); |
607 | avatar.ControllingClient.SendLocalTeleport(position, lookAt, flags); | 607 | avatar.ControllingClient.SendLocalTeleport(position, lookAt, teleportFlags); |
608 | avatar.Teleport(position); | 608 | avatar.Teleport(position); |
609 | } | 609 | } |
610 | else | 610 | else |
@@ -662,7 +662,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
662 | m_log.DebugFormat( | 662 | m_log.DebugFormat( |
663 | "[CAPS]: Sending new CAPS seed url {0} to client {1}", capsPath, avatar.UUID); | 663 | "[CAPS]: Sending new CAPS seed url {0} to client {1}", capsPath, avatar.UUID); |
664 | 664 | ||
665 | avatar.ControllingClient.SendRegionTeleport(reg.RegionHandle, 13, reg.ExternalEndPoint, 4, (1 << 4), | 665 | avatar.ControllingClient.SendRegionTeleport(reg.RegionHandle, 13, reg.ExternalEndPoint, 4, teleportFlags, |
666 | capsPath); | 666 | capsPath); |
667 | avatar.MakeChildAgent(); | 667 | avatar.MakeChildAgent(); |
668 | Thread.Sleep(5000); | 668 | Thread.Sleep(5000); |
@@ -716,6 +716,12 @@ namespace OpenSim.Region.Environment.Scenes | |||
716 | return m_commsProvider.GridService.GetGridSettings(); | 716 | return m_commsProvider.GridService.GetGridSettings(); |
717 | } | 717 | } |
718 | 718 | ||
719 | public void LogOffUser(UUID userid, UUID regionid, ulong regionhandle, Vector3 position, Vector3 lookat) | ||
720 | { | ||
721 | m_commsProvider.LogOffUser(userid, regionid, regionhandle, position, lookat); | ||
722 | } | ||
723 | |||
724 | // deprecated as of 2008-08-27 | ||
719 | public void LogOffUser(UUID userid, UUID regionid, ulong regionhandle, float posx, float posy, float posz) | 725 | public void LogOffUser(UUID userid, UUID regionid, ulong regionhandle, float posx, float posy, float posz) |
720 | { | 726 | { |
721 | m_commsProvider.LogOffUser(userid, regionid, regionhandle, posx, posy, posz); | 727 | m_commsProvider.LogOffUser(userid, regionid, regionhandle, posx, posy, posz); |
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 1a4b0c9..abda63e 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs | |||
@@ -241,6 +241,11 @@ namespace OpenSim.Region.Environment.Scenes | |||
241 | get { return m_CameraCenter; } | 241 | get { return m_CameraCenter; } |
242 | } | 242 | } |
243 | 243 | ||
244 | public Vector3 Lookat | ||
245 | { | ||
246 | get { return Util.GetNormalizedVector(new Vector3(m_CameraAtAxis.X, m_CameraAtAxis.Y, 0)); } | ||
247 | } | ||
248 | |||
244 | private readonly string m_firstname; | 249 | private readonly string m_firstname; |
245 | 250 | ||
246 | public string Firstname | 251 | public string Firstname |