mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
patch objects crossings for var regions, until region location is fully fixed
This commit is contained in:
@@ -2547,8 +2547,14 @@ 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;
|
||||
|
||||
Reference in New Issue
Block a user