diff options
author | Melanie Thielker | 2008-08-14 16:48:51 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-08-14 16:48:51 +0000 |
commit | 35aeb9010a860fa9a90acdbe2278de28923d1de3 (patch) | |
tree | 1bd6c1d9f786f6233d084058193122f3b562791b /OpenSim/Grid/UserServer | |
parent | Add the UserStore migrations to the TP fixes patch (diff) | |
download | opensim-SC_OLD-35aeb9010a860fa9a90acdbe2278de28923d1de3.zip opensim-SC_OLD-35aeb9010a860fa9a90acdbe2278de28923d1de3.tar.gz opensim-SC_OLD-35aeb9010a860fa9a90acdbe2278de28923d1de3.tar.bz2 opensim-SC_OLD-35aeb9010a860fa9a90acdbe2278de28923d1de3.tar.xz |
Mantis #1953
Thank you, HomerHorwitz, for a patch that changes login location handling
to use the sim UUID if it has already been stored.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Grid/UserServer/UserLoginService.cs | 23 |
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 |