diff options
author | UbitUmarov | 2015-08-25 13:36:45 +0100 |
---|---|---|
committer | UbitUmarov | 2015-08-25 13:36:45 +0100 |
commit | 64d05bab0fe9e12038309275a677e68518fb9b15 (patch) | |
tree | c9c6049f06b2462d18029404c4f6119ea87f209f /OpenSim/Region/Framework/Scenes/TerrainChannel.cs | |
parent | let mysql be happy with a NULL heighmap ( yeap i made several ) (diff) | |
download | opensim-SC_OLD-64d05bab0fe9e12038309275a677e68518fb9b15.zip opensim-SC_OLD-64d05bab0fe9e12038309275a677e68518fb9b15.tar.gz opensim-SC_OLD-64d05bab0fe9e12038309275a677e68518fb9b15.tar.bz2 opensim-SC_OLD-64d05bab0fe9e12038309275a677e68518fb9b15.tar.xz |
terrain stored as ushorts with gzip compression
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/TerrainChannel.cs | 6 |
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 | } |