dont round to nearest int when checking position in parcel since next high int can be on other parcel

LSLKeyTest
UbitUmarov 2015-12-15 04:10:47 +00:00
parent 2f7e9a97db
commit 4805e91d39
1 changed files with 1 additions and 1 deletions

View File

@ -2256,7 +2256,7 @@ namespace OpenSim.Region.CoreModules.World.Land
if (land.IsEitherBannedOrRestricted(avatar.UUID))
{
if (land.ContainsPoint(Convert.ToInt32(avatar.lastKnownAllowedPosition.X), Convert.ToInt32(avatar.lastKnownAllowedPosition.Y)))
if (land.ContainsPoint((int)avatar.lastKnownAllowedPosition.X, (int)avatar.lastKnownAllowedPosition.Y))
{
Vector3? pos = m_scene.GetNearestAllowedPosition(avatar);
if (pos == null)