diff options
author | UbitUmarov | 2017-05-14 05:49:01 +0100 |
---|---|---|
committer | UbitUmarov | 2017-05-14 05:49:01 +0100 |
commit | 92df6095d5aed4f008dfdad7a597e72fdc70217d (patch) | |
tree | 04452a0b93e84bf0fe1e4cccb33fb9f1b21601f2 /OpenSim/Region/CoreModules/World/Land/DwellModule.cs | |
parent | don't do dwell if there is no module active (diff) | |
download | opensim-SC_OLD-92df6095d5aed4f008dfdad7a597e72fdc70217d.zip opensim-SC_OLD-92df6095d5aed4f008dfdad7a597e72fdc70217d.tar.gz opensim-SC_OLD-92df6095d5aed4f008dfdad7a597e72fdc70217d.tar.bz2 opensim-SC_OLD-92df6095d5aed4f008dfdad7a597e72fdc70217d.tar.xz |
don't round to nearest int
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/DwellModule.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/DwellModule.cs b/OpenSim/Region/CoreModules/World/Land/DwellModule.cs index 55a341e..22480e6 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 | |||
130 | { | 130 | { |
131 | ILandObject parcel = m_scene.LandChannel.GetLandObject(parcelID); | 131 | ILandObject parcel = m_scene.LandChannel.GetLandObject(parcelID); |
132 | if (parcel != null && parcel.LandData != null) | 132 | if (parcel != null && parcel.LandData != null) |
133 | return (int)(parcel.LandData.Dwell + 0.5f); | 133 | return (int)(parcel.LandData.Dwell); |
134 | return 0; | 134 | return 0; |
135 | } | 135 | } |
136 | 136 | ||
137 | public int GetDwell(LandData land) | 137 | public int GetDwell(LandData land) |
138 | { | 138 | { |
139 | if (land != null) | 139 | if (land != null) |
140 | return (int)(land.Dwell + 0.5f); | 140 | return (int)(land.Dwell); |
141 | return 0; | 141 | return 0; |
142 | } | 142 | } |
143 | 143 | ||