aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Data/RegionProfileData.cs4
-rw-r--r--OpenSim/Grid/UserServer/UserLoginService.cs23
2 files changed, 19 insertions, 8 deletions
diff --git a/OpenSim/Data/RegionProfileData.cs b/OpenSim/Data/RegionProfileData.cs
index f6172b9..9549b80 100644
--- a/OpenSim/Data/RegionProfileData.cs
+++ b/OpenSim/Data/RegionProfileData.cs
@@ -171,7 +171,7 @@ namespace OpenSim.Data
171 /// <summary> 171 /// <summary>
172 /// Request sim profile information from a grid server, by Region UUID 172 /// Request sim profile information from a grid server, by Region UUID
173 /// </summary> 173 /// </summary>
174 /// <param name="region_uuid">The region UUID to look for</param> 174 /// <param name="region_UUID">The region UUID to look for</param>
175 /// <param name="gridserver_url"></param> 175 /// <param name="gridserver_url"></param>
176 /// <param name="gridserver_sendkey"></param> 176 /// <param name="gridserver_sendkey"></param>
177 /// <param name="gridserver_recvkey"></param> 177 /// <param name="gridserver_recvkey"></param>
@@ -180,7 +180,7 @@ namespace OpenSim.Data
180 public static RegionProfileData RequestSimProfileData(LLUUID region_uuid, Uri gridserver_url, 180 public static RegionProfileData RequestSimProfileData(LLUUID region_uuid, Uri gridserver_url,
181 string gridserver_sendkey, string gridserver_recvkey) 181 string gridserver_sendkey, string gridserver_recvkey)
182 { 182 {
183 return RequestSimData(gridserver_url, gridserver_sendkey, "region_uuid", region_uuid.UUID.ToString()); 183 return RequestSimData(gridserver_url, gridserver_sendkey, "region_UUID", region_uuid.UUID.ToString());
184 } 184 }
185 185
186 /// <summary> 186 /// <summary>
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