aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/TerrainChannel.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/TerrainChannel.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/TerrainChannel.cs b/OpenSim/Region/Framework/Scenes/TerrainChannel.cs
index 2dab246..75c3a3b 100644
--- a/OpenSim/Region/Framework/Scenes/TerrainChannel.cs
+++ b/OpenSim/Region/Framework/Scenes/TerrainChannel.cs
@@ -157,7 +157,11 @@ namespace OpenSim.Region.Framework.Scenes
157 { 157 {
158 if (Double.IsNaN(value) || Double.IsInfinity(value)) 158 if (Double.IsNaN(value) || Double.IsInfinity(value))
159 return; 159 return;
160 160 if (value < 0)
161 value = 0;
162 else
163 if (value > 655.35)
164 value = 655.35;
161 m_terrainData[x, y] = (float)value; 165 m_terrainData[x, y] = (float)value;
162 } 166 }
163 } 167 }