diff options
author | UbitUmarov | 2015-11-27 23:46:58 +0000 |
---|---|---|
committer | UbitUmarov | 2015-11-27 23:46:58 +0000 |
commit | 9928076d1a16b3b62fb6cd5e24f43b9f9c648457 (patch) | |
tree | b684ce80c7c775a9707db11764359de46d8ae1a0 /OpenSim/Region/Framework/Scenes/TerrainChannel.cs | |
parent | add a nasty global lock, ode.dll requires on multi regions per instance ( als... (diff) | |
download | opensim-SC_OLD-9928076d1a16b3b62fb6cd5e24f43b9f9c648457.zip opensim-SC_OLD-9928076d1a16b3b62fb6cd5e24f43b9f9c648457.tar.gz opensim-SC_OLD-9928076d1a16b3b62fb6cd5e24f43b9f9c648457.tar.bz2 opensim-SC_OLD-9928076d1a16b3b62fb6cd5e24f43b9f9c648457.tar.xz |
remove terrain height clamping left over the ushort format testing
Diffstat (limited to '')
-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 | } |