diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index 2532b7e..4c241db 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | |||
@@ -2547,8 +2547,14 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
2547 | else | 2547 | else |
2548 | y--; | 2548 | y--; |
2549 | 2549 | ||
2550 | // ugly | ||
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)); | ||
2550 | 2556 | ||
2551 | GridRegion neighbourRegion = scene.GridService.GetRegionByPosition(scene.RegionInfo.ScopeID,x,y); | 2557 | // GridRegion neighbourRegion = scene.GridService.GetRegionByPosition(scene.RegionInfo.ScopeID,x,y); |
2552 | if (neighbourRegion == null) | 2558 | if (neighbourRegion == null) |
2553 | { | 2559 | { |
2554 | return null; | 2560 | return null; |