diff options
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index 4c241db..902ae22 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 | |||
2547 | else | 2547 | else |
2548 | y--; | 2548 | y--; |
2549 | 2549 | ||
2550 | // ugly | 2550 | GridRegion neighbourRegion = scene.GridService.GetRegionByPosition(scene.RegionInfo.ScopeID,x,y); |
2551 | // Call the grid service to lookup the region containing the new position. | ||
2552 | GridRegion neighbourRegion = GetRegionContainingWorldLocation( | ||
2553 | scene.GridService, scene.RegionInfo.ScopeID, | ||
2554 | targetPosition.X, targetPosition.Y, | ||
2555 | Math.Max(scene.RegionInfo.RegionSizeX, scene.RegionInfo.RegionSizeY)); | ||
2556 | |||
2557 | // GridRegion neighbourRegion = scene.GridService.GetRegionByPosition(scene.RegionInfo.ScopeID,x,y); | ||
2558 | if (neighbourRegion == null) | 2551 | if (neighbourRegion == null) |
2559 | { | 2552 | { |
2560 | return null; | 2553 | return null; |