Update svn properties, minor formatting cleanup.
parent
60a676251a
commit
796ccd3d37
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* Copyright (c) Contributors, http://opensimulator.org/
|
||||
* See CONTRIBUTORS.TXT for a full list of copyright holders.
|
||||
*
|
||||
|
@ -1157,7 +1157,8 @@ namespace OpenSim.Region.Environment.Modules.World.Land
|
|||
{
|
||||
// a parcel request for a parcel in another region. Ask the grid about the region
|
||||
RegionInfo info = m_scene.CommsManager.GridService.RequestNeighbourInfo(regionID);
|
||||
if(info != null) parcelID = Util.BuildFakeParcelID(info.RegionHandle, x, y);
|
||||
if (info != null)
|
||||
parcelID = Util.BuildFakeParcelID(info.RegionHandle, x, y);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1182,7 +1183,8 @@ namespace OpenSim.Region.Environment.Modules.World.Land
|
|||
|
||||
private void handleParcelInfo(IClientAPI remoteClient, LLUUID parcelID)
|
||||
{
|
||||
if(parcelID == LLUUID.Zero) return;
|
||||
if (parcelID == LLUUID.Zero)
|
||||
return;
|
||||
|
||||
// assume we've got the parcelID we just computed in RemoteParcelRequest
|
||||
ulong regionHandle;
|
||||
|
@ -1191,8 +1193,10 @@ namespace OpenSim.Region.Environment.Modules.World.Land
|
|||
m_log.DebugFormat("[LAND] got parcelinfo request for regionHandle {0}, x/y {1}/{2}", regionHandle, x, y);
|
||||
|
||||
LandData landData;
|
||||
if(regionHandle == m_scene.RegionInfo.RegionHandle) landData = this.GetLandObject(x, y).landData;
|
||||
else landData = m_scene.CommsManager.GridService.RequestLandData(regionHandle, x, y);
|
||||
if (regionHandle == m_scene.RegionInfo.RegionHandle)
|
||||
landData = this.GetLandObject(x, y).landData;
|
||||
else
|
||||
landData = m_scene.CommsManager.GridService.RequestLandData(regionHandle, x, y);
|
||||
|
||||
if (landData != null)
|
||||
{
|
||||
|
@ -1200,8 +1204,8 @@ namespace OpenSim.Region.Environment.Modules.World.Land
|
|||
m_log.Debug("[LAND] got parcelinfo; sending");
|
||||
remoteClient.SendParcelInfo(m_scene.RegionInfo, landData, parcelID, x, y);
|
||||
}
|
||||
else m_log.Debug("[LAND] got no parcelinfo; not sending");
|
||||
else
|
||||
m_log.Debug("[LAND] got no parcelinfo; not sending");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -3872,9 +3872,13 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
public void RegionHandleRequest(IClientAPI client, LLUUID regionID)
|
||||
{
|
||||
RegionInfo info;
|
||||
if(regionID == RegionInfo.RegionID) info = RegionInfo;
|
||||
else info = CommsManager.GridService.RequestNeighbourInfo(regionID);
|
||||
if(info != null) client.SendRegionHandle(regionID, info.RegionHandle);
|
||||
if (regionID == RegionInfo.RegionID)
|
||||
info = RegionInfo;
|
||||
else
|
||||
info = CommsManager.GridService.RequestNeighbourInfo(regionID);
|
||||
|
||||
if (info != null)
|
||||
client.SendRegionHandle(regionID, info.RegionHandle);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue