diff options
-rw-r--r-- | OpenSim/Region/Framework/Scenes/TerrainChannel.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/OpenSim/Region/Framework/Scenes/TerrainChannel.cs b/OpenSim/Region/Framework/Scenes/TerrainChannel.cs index ce5586c..1aa1194 100644 --- a/OpenSim/Region/Framework/Scenes/TerrainChannel.cs +++ b/OpenSim/Region/Framework/Scenes/TerrainChannel.cs | |||
@@ -158,11 +158,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
158 | { | 158 | { |
159 | if (Double.IsNaN(value) || Double.IsInfinity(value)) | 159 | if (Double.IsNaN(value) || Double.IsInfinity(value)) |
160 | return; | 160 | return; |
161 | if (value < 0) | 161 | |
162 | value = 0; | ||
163 | else | ||
164 | if (value > 655.35) | ||
165 | value = 655.35; | ||
166 | m_terrainData[x, y] = (float)value; | 162 | m_terrainData[x, y] = (float)value; |
167 | } | 163 | } |
168 | } | 164 | } |