try to fix lm about on large regions, again...

This commit is contained in:
UbitUmarov
2020-09-26 00:10:55 +01:00
parent e2a68e0369
commit 6b97367ed0

View File

@@ -2155,13 +2155,22 @@ namespace OpenSim.Region.CoreModules.World.Land
GridRegion info = m_scene.GridService.GetRegionByPosition(scope, (int)wx, (int)wy);
if (info != null)
{
wx -= (uint)info.RegionLocX;
wy -= (uint)info.RegionLocY;
wx += x;
wy += y;
if (wx >= info.RegionSizeX || wy >= info.RegionSizeY)
{
wx = x;
wy = y;
}
if (info.RegionHandle == myHandle)
{
ILandObject l = GetLandObjectClippedXY(x, y);
ILandObject l = GetLandObjectClippedXY(wx, wy);
if (l != null)
parcelID = l.LandData.FakeID;
else
parcelID = Util.BuildFakeParcelID(myHandle, x, y);
parcelID = Util.BuildFakeParcelID(myHandle, wx, wy);
}
else
{