mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
dont round to nearest int when checking position in parcel since next high int can be on other parcel
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user