fix a lost region size of 256m

LSLKeyTest
UbitUmarov 2016-07-03 19:39:13 +01:00
parent 42dd02fc32
commit 58135ef52c
1 changed files with 5 additions and 1 deletions

View File

@ -1303,7 +1303,11 @@ namespace OpenSim.Region.CoreModules.World.Permissions
DebugPermissionInformation(MethodInfo.GetCurrentMethod().Name);
if (m_bypassPermissions) return m_bypassPermissionsValue;
if ((newPoint.X > 257f || newPoint.X < -1f || newPoint.Y > 257f || newPoint.Y < -1f))
// allow outide region??
if (newPoint.X < -1f || newPoint.Y < -1f)
return true;
if (newPoint.X > scene.RegionInfo.RegionSizeX + 1.0f || newPoint.Y > scene.RegionInfo.RegionSizeY + 1.0f)
{
return true;
}