diff options
author | Charles Krinke | 2008-08-21 14:23:29 +0000 |
---|---|---|
committer | Charles Krinke | 2008-08-21 14:23:29 +0000 |
commit | d4335671787f3cc5adba53ee2558c62cdb1c27d4 (patch) | |
tree | 7249b62301a08fb63ada49ad4c407c8d8c50fd7a /OpenSim/Region | |
parent | Mantis#1990. Thank you kindly, Nlin and M.Igarashi for a patch that: (diff) | |
download | opensim-SC-d4335671787f3cc5adba53ee2558c62cdb1c27d4.zip opensim-SC-d4335671787f3cc5adba53ee2558c62cdb1c27d4.tar.gz opensim-SC-d4335671787f3cc5adba53ee2558c62cdb1c27d4.tar.bz2 opensim-SC-d4335671787f3cc5adba53ee2558c62cdb1c27d4.tar.xz |
Mantis#904. Thank you kindly, Jonc for a patch that solves:
LocalLoginService does not send the last position coords in
the login response. This patch fixes the issue.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Communications/Local/LocalLoginService.cs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/OpenSim/Region/Communications/Local/LocalLoginService.cs b/OpenSim/Region/Communications/Local/LocalLoginService.cs index f16fd7d..864d58c 100644 --- a/OpenSim/Region/Communications/Local/LocalLoginService.cs +++ b/OpenSim/Region/Communications/Local/LocalLoginService.cs | |||
@@ -135,10 +135,17 @@ namespace OpenSim.Region.Communications.Local | |||
135 | if (startLocationRequest == "last") | 135 | if (startLocationRequest == "last") |
136 | { | 136 | { |
137 | currentRegion = theUser.CurrentAgent.Handle; | 137 | currentRegion = theUser.CurrentAgent.Handle; |
138 | locX = (UInt32)theUser.CurrentAgent.Position.X; | ||
139 | locY = (UInt32)theUser.CurrentAgent.Position.Y; | ||
140 | locZ = (UInt32)theUser.CurrentAgent.Position.Z; | ||
141 | response.StartLocation = "last"; | ||
142 | specificStartLocation = true; | ||
138 | } | 143 | } |
139 | else if (startLocationRequest == "home") | 144 | else if (startLocationRequest == "home") |
140 | { | 145 | { |
141 | currentRegion = theUser.HomeRegion; | 146 | currentRegion = theUser.HomeRegion; |
147 | response.StartLocation = "home"; | ||
148 | |||
142 | } | 149 | } |
143 | else | 150 | else |
144 | { | 151 | { |
@@ -166,6 +173,8 @@ namespace OpenSim.Region.Communications.Local | |||
166 | locX = UInt32.Parse(uriMatch.Groups["x"].ToString()); | 173 | locX = UInt32.Parse(uriMatch.Groups["x"].ToString()); |
167 | locY = UInt32.Parse(uriMatch.Groups["y"].ToString()); | 174 | locY = UInt32.Parse(uriMatch.Groups["y"].ToString()); |
168 | locZ = UInt32.Parse(uriMatch.Groups["z"].ToString()); | 175 | locZ = UInt32.Parse(uriMatch.Groups["z"].ToString()); |
176 | // can be: last, home, safe, url | ||
177 | response.StartLocation = "url"; | ||
169 | specificStartLocation = true; | 178 | specificStartLocation = true; |
170 | } | 179 | } |
171 | } | 180 | } |
@@ -196,9 +205,6 @@ namespace OpenSim.Region.Communications.Local | |||
196 | m_log.DebugFormat( | 205 | m_log.DebugFormat( |
197 | "[CAPS][LOGIN]: RegionX {0} RegionY {0}", response.RegionX, response.RegionY); | 206 | "[CAPS][LOGIN]: RegionX {0} RegionY {0}", response.RegionX, response.RegionY); |
198 | 207 | ||
199 | // can be: last, home, safe, url | ||
200 | if (specificStartLocation) response.StartLocation = "url"; | ||
201 | |||
202 | response.SeedCapability = "http://" + reg.ExternalHostName + ":" + | 208 | response.SeedCapability = "http://" + reg.ExternalHostName + ":" + |
203 | serversInfo.HttpListenerPort.ToString() + "/CAPS/" + capsPath + "0000/"; | 209 | serversInfo.HttpListenerPort.ToString() + "/CAPS/" + capsPath + "0000/"; |
204 | 210 | ||