diff options
author | Melanie | 2011-04-30 14:37:37 +0100 |
---|---|---|
committer | Melanie | 2011-04-30 14:37:37 +0100 |
commit | d1cf1fe3d7d3867bcdf7c725ceebdb7aa9579be9 (patch) | |
tree | 1310049348fe722ca9c3e970cf5e300f9ad29fce /OpenSim/Server | |
parent | Merge branch 'careminster-presence-refactor' of ssh://melanie@3dhosting.de/va... (diff) | |
parent | Delaying starting the scripts on TPs and crossings until the agent is root. (diff) | |
download | opensim-SC-d1cf1fe3d7d3867bcdf7c725ceebdb7aa9579be9.zip opensim-SC-d1cf1fe3d7d3867bcdf7c725ceebdb7aa9579be9.tar.gz opensim-SC-d1cf1fe3d7d3867bcdf7c725ceebdb7aa9579be9.tar.bz2 opensim-SC-d1cf1fe3d7d3867bcdf7c725ceebdb7aa9579be9.tar.xz |
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Server')
-rw-r--r-- | OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs index 616aef3..b51290d 100644 --- a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs +++ b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | |||
@@ -50,6 +50,7 @@ namespace OpenSim.Server.Handlers.Simulation | |||
50 | public class AgentHandler | 50 | public class AgentHandler |
51 | { | 51 | { |
52 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 52 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
53 | |||
53 | private ISimulationService m_SimulationService; | 54 | private ISimulationService m_SimulationService; |
54 | 55 | ||
55 | protected bool m_Proxy = false; | 56 | protected bool m_Proxy = false; |
@@ -280,7 +281,7 @@ namespace OpenSim.Server.Handlers.Simulation | |||
280 | AgentData agent = new AgentData(); | 281 | AgentData agent = new AgentData(); |
281 | try | 282 | try |
282 | { | 283 | { |
283 | agent.Unpack(args); | 284 | agent.Unpack(args, m_SimulationService.GetScene(destination.RegionHandle)); |
284 | } | 285 | } |
285 | catch (Exception ex) | 286 | catch (Exception ex) |
286 | { | 287 | { |
@@ -300,7 +301,7 @@ namespace OpenSim.Server.Handlers.Simulation | |||
300 | AgentPosition agent = new AgentPosition(); | 301 | AgentPosition agent = new AgentPosition(); |
301 | try | 302 | try |
302 | { | 303 | { |
303 | agent.Unpack(args); | 304 | agent.Unpack(args, m_SimulationService.GetScene(destination.RegionHandle)); |
304 | } | 305 | } |
305 | catch (Exception ex) | 306 | catch (Exception ex) |
306 | { | 307 | { |
@@ -347,7 +348,8 @@ namespace OpenSim.Server.Handlers.Simulation | |||
347 | destination.RegionID = regionID; | 348 | destination.RegionID = regionID; |
348 | 349 | ||
349 | string reason; | 350 | string reason; |
350 | bool result = m_SimulationService.QueryAccess(destination, id, position, out reason); | 351 | string version; |
352 | bool result = m_SimulationService.QueryAccess(destination, id, position, out version, out reason); | ||
351 | 353 | ||
352 | responsedata["int_response_code"] = HttpStatusCode.OK; | 354 | responsedata["int_response_code"] = HttpStatusCode.OK; |
353 | 355 | ||
@@ -355,6 +357,7 @@ namespace OpenSim.Server.Handlers.Simulation | |||
355 | 357 | ||
356 | resp["success"] = OSD.FromBoolean(result); | 358 | resp["success"] = OSD.FromBoolean(result); |
357 | resp["reason"] = OSD.FromString(reason); | 359 | resp["reason"] = OSD.FromString(reason); |
360 | resp["version"] = OSD.FromString(version); | ||
358 | 361 | ||
359 | responsedata["str_response_string"] = OSDParser.SerializeJsonString(resp); | 362 | responsedata["str_response_string"] = OSDParser.SerializeJsonString(resp); |
360 | } | 363 | } |