From 6705ff2d6eceb56d60cc9c297e4a17af91e2a752 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 25 Aug 2020 21:26:25 +0100 Subject: [PATCH] debug other thing --- .../CoreModules/World/Land/LandManagementModule.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs index 9427278395..e7db1bb51d 100755 --- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs @@ -988,13 +988,13 @@ namespace OpenSim.Region.CoreModules.World.Land public ILandObject GetLandObjectClipedXY(float x, float y) { //do clip inline - int avx = (int)x; + int avx = (int)(Math.Round(x)); if (avx < 0) avx = 0; else if (avx >= m_regionSizeX) avx = m_regionSizeX - 1; - int avy = (int)y; + int avy = (int)(Math.Round(y)); if (avy < 0) avy = 0; else if (avy >= m_regionSizeY) @@ -2152,6 +2152,13 @@ namespace OpenSim.Region.CoreModules.World.Land parcelID = l.LandData.FakeID; else parcelID = Util.BuildFakeParcelID(myHandle, x, y); + if(parcelID == UUID.Zero) + { + m_log.DebugFormat("[LAND MANAGEMENT MODULE]: RemoteParcelRequest failed {0} {1}{2}{3} ", + (l == null ? "nullL" : l.LandData.FakeID.ToString()), + x.ToString(), y.ToString(), regionHandle.ToString()); + parcelID = Util.BuildFakeParcelID(myHandle, x, y); + } } else {