useless change that doesn't fix anything

melanie
UbitUmarov 2016-12-16 18:55:13 +00:00
parent 61d2fb6a17
commit 1ddc90f16e
1 changed files with 14 additions and 5 deletions

View File

@ -66,22 +66,31 @@ namespace OpenSim.Services.Connectors
public virtual LandData GetLandData(UUID scopeID, ulong regionHandle, uint x, uint y, out byte regionAccess)
{
LandData landData = null;
Hashtable hash = new Hashtable();
hash["region_handle"] = regionHandle.ToString();
hash["x"] = x.ToString();
hash["y"] = y.ToString();
IList paramList = new ArrayList();
paramList.Add(hash);
regionAccess = 42; // Default to adult. Better safe...
try
{
uint xpos = 0, ypos = 0;
Util.RegionHandleToWorldLoc(regionHandle, out xpos, out ypos);
GridRegion info = m_GridService.GetRegionByPosition(scopeID, (int)xpos, (int)ypos);
if (info != null) // just to be sure
{
string targetHandlestr = info.RegionHandle.ToString();
if( ypos == 0 ) //HG proxy?
{
// this is real region handle on hg proxies hack
targetHandlestr = info.RegionSecret;
}
Hashtable hash = new Hashtable();
hash["region_handle"] = targetHandlestr;
hash["x"] = x.ToString();
hash["y"] = y.ToString();
paramList.Add(hash);
XmlRpcRequest request = new XmlRpcRequest("land_data", paramList);
XmlRpcResponse response = request.Send(info.ServerURI, 10000);
if (response.IsFault)