diff options
Diffstat (limited to 'OpenSim/Server')
-rw-r--r-- | OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs index 89832f4..b33b0d5 100644 --- a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs +++ b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | |||
@@ -331,10 +331,17 @@ namespace OpenSim.Server.Handlers.Simulation | |||
331 | return; | 331 | return; |
332 | } | 332 | } |
333 | 333 | ||
334 | // m_log.DebugFormat("[AGENT HANDLER]: Received QUERYACCESS with {0}", (string)request["body"]); | ||
335 | OSDMap args = Utils.GetOSDMap((string)request["body"]); | ||
336 | |||
337 | Vector3 position = Vector3.Zero; | ||
338 | if (args.ContainsKey("position")) | ||
339 | position = Vector3.Parse(args["position"].AsString()); | ||
340 | |||
334 | GridRegion destination = new GridRegion(); | 341 | GridRegion destination = new GridRegion(); |
335 | destination.RegionID = regionID; | 342 | destination.RegionID = regionID; |
336 | 343 | ||
337 | bool result = m_SimulationService.QueryAccess(destination, id); | 344 | bool result = m_SimulationService.QueryAccess(destination, id, position); |
338 | 345 | ||
339 | responsedata["int_response_code"] = HttpStatusCode.OK; | 346 | responsedata["int_response_code"] = HttpStatusCode.OK; |
340 | responsedata["str_response_string"] = result.ToString(); | 347 | responsedata["str_response_string"] = result.ToString(); |