mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
don't round to nearest int
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user