aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorUbitUmarov2015-12-15 04:10:47 +0000
committerUbitUmarov2015-12-15 04:10:47 +0000
commit4805e91d39ac916c418954af32823206102d9e20 (patch)
treed19aa4b9ce747f7c81ec61a9d018a2c3fbc8bbf0 /OpenSim
parentrename a parameter (diff)
downloadopensim-SC-4805e91d39ac916c418954af32823206102d9e20.zip
opensim-SC-4805e91d39ac916c418954af32823206102d9e20.tar.gz
opensim-SC-4805e91d39ac916c418954af32823206102d9e20.tar.bz2
opensim-SC-4805e91d39ac916c418954af32823206102d9e20.tar.xz
dont round to nearest int when checking position in parcel since next high int can be on other parcel
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
index ebf106a..6686362 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
@@ -2256,7 +2256,7 @@ namespace OpenSim.Region.CoreModules.World.Land
2256 2256
2257 if (land.IsEitherBannedOrRestricted(avatar.UUID)) 2257 if (land.IsEitherBannedOrRestricted(avatar.UUID))
2258 { 2258 {
2259 if (land.ContainsPoint(Convert.ToInt32(avatar.lastKnownAllowedPosition.X), Convert.ToInt32(avatar.lastKnownAllowedPosition.Y))) 2259 if (land.ContainsPoint((int)avatar.lastKnownAllowedPosition.X, (int)avatar.lastKnownAllowedPosition.Y))
2260 { 2260 {
2261 Vector3? pos = m_scene.GetNearestAllowedPosition(avatar); 2261 Vector3? pos = m_scene.GetNearestAllowedPosition(avatar);
2262 if (pos == null) 2262 if (pos == null)