diff options
author | Teravus Ovares | 2008-04-10 09:56:59 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-04-10 09:56:59 +0000 |
commit | a253ac0830d5cb39f703393d3696e504dee0c67d (patch) | |
tree | 52fffdb85f80ddc80db50b56625a058b34be4fc6 /OpenSim/Grid/UserServer | |
parent | * Updates BetaGridLikeMoneyModule (diff) | |
download | opensim-SC-a253ac0830d5cb39f703393d3696e504dee0c67d.zip opensim-SC-a253ac0830d5cb39f703393d3696e504dee0c67d.tar.gz opensim-SC-a253ac0830d5cb39f703393d3696e504dee0c67d.tar.bz2 opensim-SC-a253ac0830d5cb39f703393d3696e504dee0c67d.tar.xz |
Patch by lulurun - 0000916: support secondlife client's "-url sim/x/y/z" option
Thanks lulurun!
Diffstat (limited to 'OpenSim/Grid/UserServer')
-rw-r--r-- | OpenSim/Grid/UserServer/UserLoginService.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Grid/UserServer/UserLoginService.cs b/OpenSim/Grid/UserServer/UserLoginService.cs index f6bd974..d409951 100644 --- a/OpenSim/Grid/UserServer/UserLoginService.cs +++ b/OpenSim/Grid/UserServer/UserLoginService.cs | |||
@@ -78,6 +78,9 @@ namespace OpenSim.Grid.UserServer | |||
78 | try | 78 | try |
79 | { | 79 | { |
80 | RegionProfileData SimInfo = null; | 80 | RegionProfileData SimInfo = null; |
81 | int start_x = -1; | ||
82 | int start_y = -1; | ||
83 | int start_z = -1; | ||
81 | if (startLocationRequest == "last") | 84 | if (startLocationRequest == "last") |
82 | { | 85 | { |
83 | SimInfo = | 86 | SimInfo = |
@@ -119,6 +122,10 @@ namespace OpenSim.Grid.UserServer | |||
119 | RegionProfileData.RequestSimProfileData( | 122 | RegionProfileData.RequestSimProfileData( |
120 | theUser.homeRegion, m_config.GridServerURL, | 123 | theUser.homeRegion, m_config.GridServerURL, |
121 | m_config.GridSendKey, m_config.GridRecvKey); | 124 | m_config.GridSendKey, m_config.GridRecvKey); |
125 | } else { | ||
126 | start_x = Convert.ToInt32(startLocationRequestParsed[1]); | ||
127 | start_y = Convert.ToInt32(startLocationRequestParsed[2]); | ||
128 | start_z = Convert.ToInt32(startLocationRequestParsed[3]); | ||
122 | } | 129 | } |
123 | } | 130 | } |
124 | } | 131 | } |
@@ -159,7 +166,11 @@ namespace OpenSim.Grid.UserServer | |||
159 | 166 | ||
160 | theUser.currentAgent.currentRegion = SimInfo.UUID; | 167 | theUser.currentAgent.currentRegion = SimInfo.UUID; |
161 | theUser.currentAgent.currentHandle = SimInfo.regionHandle; | 168 | theUser.currentAgent.currentHandle = SimInfo.regionHandle; |
162 | 169 | if (start_x >= 0 && start_y >= 0 && start_z >= 0) { | |
170 | theUser.currentAgent.currentPos.X = start_x; | ||
171 | theUser.currentAgent.currentPos.Y = start_y; | ||
172 | theUser.currentAgent.currentPos.Z = start_z; | ||
173 | } | ||
163 | // Prepare notification | 174 | // Prepare notification |
164 | Hashtable SimParams = new Hashtable(); | 175 | Hashtable SimParams = new Hashtable(); |
165 | SimParams["session_id"] = theUser.currentAgent.sessionID.ToString(); | 176 | SimParams["session_id"] = theUser.currentAgent.sessionID.ToString(); |