From 07a8618c56df6d7d3d105f1ee52900470c864c65 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Fri, 25 Sep 2015 21:43:51 +0100 Subject: [PATCH] revert previus wrong commit --- .../Framework/EntityTransfer/EntityTransferModule.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index 4c241dbfed..902ae22ea8 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs @@ -2547,14 +2547,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer else y--; - // ugly - // Call the grid service to lookup the region containing the new position. - GridRegion neighbourRegion = GetRegionContainingWorldLocation( - scene.GridService, scene.RegionInfo.ScopeID, - targetPosition.X, targetPosition.Y, - Math.Max(scene.RegionInfo.RegionSizeX, scene.RegionInfo.RegionSizeY)); - -// GridRegion neighbourRegion = scene.GridService.GetRegionByPosition(scene.RegionInfo.ScopeID,x,y); + GridRegion neighbourRegion = scene.GridService.GetRegionByPosition(scene.RegionInfo.ScopeID,x,y); if (neighbourRegion == null) { return null;