aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/UserServer/UserLoginService.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Grid/UserServer/UserLoginService.cs23
1 files changed, 17 insertions, 6 deletions
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
152 } 152 }
153 else if (startLocationRequest == "home") 153 else if (startLocationRequest == "home")
154 { 154 {
155 SimInfo = 155 // use the homeRegionID if it is stored already. If not, use the regionHandle as before
156 RegionProfileData.RequestSimProfileData( 156 if(theUser.HomeRegionID != LLUUID.Zero)
157 theUser.HomeRegion, m_config.GridServerURL, 157 {
158 m_config.GridSendKey, m_config.GridRecvKey); 158 SimInfo =
159 RegionProfileData.RequestSimProfileData(
160 theUser.HomeRegionID, m_config.GridServerURL,
161 m_config.GridSendKey, m_config.GridRecvKey);
162 }
163 else
164 {
165 SimInfo =
166 RegionProfileData.RequestSimProfileData(
167 theUser.HomeRegion, m_config.GridServerURL,
168 m_config.GridSendKey, m_config.GridRecvKey);
169 }
159 } 170 }
160 else 171 else
161 { 172 {
@@ -201,8 +212,8 @@ namespace OpenSim.Grid.UserServer
201 (SimInfo.regionLocY * Constants.RegionSize).ToString() + "], " + 212 (SimInfo.regionLocY * Constants.RegionSize).ToString() + "], " +
202 "'position':[r" + theUser.HomeLocation.X.ToString() + ",r" + 213 "'position':[r" + theUser.HomeLocation.X.ToString() + ",r" +
203 theUser.HomeLocation.Y.ToString() + ",r" + theUser.HomeLocation.Z.ToString() + "], " + 214 theUser.HomeLocation.Y.ToString() + ",r" + theUser.HomeLocation.Z.ToString() + "], " +
204 "'look_at':[r" + theUser.HomeLocation.X.ToString() + ",r" + 215 "'look_at':[r" + theUser.HomeLookAt.X.ToString() + ",r" +
205 theUser.HomeLocation.Y.ToString() + ",r" + theUser.HomeLocation.Z.ToString() + "]}"; 216 theUser.HomeLookAt.Y.ToString() + ",r" + theUser.HomeLookAt.Z.ToString() + "]}";
206 217
207 // Destination 218 // Destination
208 //CFK: The "Notifying" message always seems to appear, so subsume the data from this message into 219 //CFK: The "Notifying" message always seems to appear, so subsume the data from this message into