diff --git a/OpenSim/Region/CoreModules/World/Land/DwellModule.cs b/OpenSim/Region/CoreModules/World/Land/DwellModule.cs index 55a341e645..22480e68df 100644 --- a/OpenSim/Region/CoreModules/World/Land/DwellModule.cs +++ b/OpenSim/Region/CoreModules/World/Land/DwellModule.cs @@ -130,14 +130,14 @@ namespace OpenSim.Region.CoreModules.World.Land { ILandObject parcel = m_scene.LandChannel.GetLandObject(parcelID); if (parcel != null && parcel.LandData != null) - return (int)(parcel.LandData.Dwell + 0.5f); + return (int)(parcel.LandData.Dwell); return 0; } public int GetDwell(LandData land) { if (land != null) - return (int)(land.Dwell + 0.5f); + return (int)(land.Dwell); return 0; } diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs index 9affe7db3e..ccb85f6c26 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs @@ -1849,7 +1849,7 @@ namespace OpenSim.Region.CoreModules.World.Land float newdwell = (float)(cur * 1.666666666667e-5); LandData.Dwell = newdwell; - if(Math.Abs(newdwell - dwell) > 1.0) + if(Math.Abs(newdwell - dwell) >= 0.9) m_scene.EventManager.TriggerLandObjectAdded(this); } }