recover a lost position check for mega regions

This commit is contained in:
UbitUmarov
2015-09-28 17:55:35 +01:00
parent e0de76aa14
commit ad58f9b17e

View File

@@ -2296,11 +2296,8 @@ namespace OpenSim.Region.Framework.Scenes
}
Vector3 pos = Vector3.Zero;
if (RayEndIsIntersection == (byte)1)
{
pos = RayEnd;
}
else
if (RayEndIsIntersection != (byte)1)
{
Vector3 rayEnd = RayEnd;
@@ -2831,7 +2828,11 @@ namespace OpenSim.Region.Framework.Scenes
if (xx < RegionInfo.RegionSizeX && yy < RegionInfo.RegionSizeY )
ret = true;
}
else
{
// We're in a mega-region so see if we are still in that larger region
ret = regionCombinerModule.PositionIsInMegaregion(this.RegionInfo.RegionID, xx, yy);
}
return ret;
}