From 35aeb9010a860fa9a90acdbe2278de28923d1de3 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Thu, 14 Aug 2008 16:48:51 +0000 Subject: Mantis #1953 Thank you, HomerHorwitz, for a patch that changes login location handling to use the sim UUID if it has already been stored. --- OpenSim/Grid/UserServer/UserLoginService.cs | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'OpenSim/Grid/UserServer/UserLoginService.cs') diff --git a/OpenSim/Grid/UserServer/UserLoginService.cs b/OpenSim/Grid/UserServer/UserLoginService.cs index 191e482..2a70534 100644 --- a/OpenSim/Grid/UserServer/UserLoginService.cs +++ b/OpenSim/Grid/UserServer/UserLoginService.cs @@ -152,10 +152,21 @@ namespace OpenSim.Grid.UserServer } else if (startLocationRequest == "home") { - SimInfo = - RegionProfileData.RequestSimProfileData( - theUser.HomeRegion, m_config.GridServerURL, - m_config.GridSendKey, m_config.GridRecvKey); + // use the homeRegionID if it is stored already. If not, use the regionHandle as before + if(theUser.HomeRegionID != LLUUID.Zero) + { + SimInfo = + RegionProfileData.RequestSimProfileData( + theUser.HomeRegionID, m_config.GridServerURL, + m_config.GridSendKey, m_config.GridRecvKey); + } + else + { + SimInfo = + RegionProfileData.RequestSimProfileData( + theUser.HomeRegion, m_config.GridServerURL, + m_config.GridSendKey, m_config.GridRecvKey); + } } else { @@ -201,8 +212,8 @@ namespace OpenSim.Grid.UserServer (SimInfo.regionLocY * Constants.RegionSize).ToString() + "], " + "'position':[r" + theUser.HomeLocation.X.ToString() + ",r" + theUser.HomeLocation.Y.ToString() + ",r" + theUser.HomeLocation.Z.ToString() + "], " + - "'look_at':[r" + theUser.HomeLocation.X.ToString() + ",r" + - theUser.HomeLocation.Y.ToString() + ",r" + theUser.HomeLocation.Z.ToString() + "]}"; + "'look_at':[r" + theUser.HomeLookAt.X.ToString() + ",r" + + theUser.HomeLookAt.Y.ToString() + ",r" + theUser.HomeLookAt.Z.ToString() + "]}"; // Destination //CFK: The "Notifying" message always seems to appear, so subsume the data from this message into -- cgit v1.1