diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Terrain/FileLoaders/LLRAW.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Terrain/FileLoaders/LLRAW.cs b/OpenSim/Region/Environment/Modules/World/Terrain/FileLoaders/LLRAW.cs index 88dd3a7..5158525 100644 --- a/OpenSim/Region/Environment/Modules/World/Terrain/FileLoaders/LLRAW.cs +++ b/OpenSim/Region/Environment/Modules/World/Terrain/FileLoaders/LLRAW.cs | |||
@@ -184,6 +184,13 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain.FileLoaders | |||
184 | for (int x = 0; x < map.Width; x++) | 184 | for (int x = 0; x < map.Width; x++) |
185 | { | 185 | { |
186 | double t = map[x, (map.Height - 1) - y]; | 186 | double t = map[x, (map.Height - 1) - y]; |
187 | //if height is less than 0, set it to 0 as | ||
188 | //can't save -ve values in a LLRAW file | ||
189 | if (t < 0d) | ||
190 | { | ||
191 | t = 0d; | ||
192 | } | ||
193 | |||
187 | int index = 0; | 194 | int index = 0; |
188 | 195 | ||
189 | // The lookup table is pre-sorted, so we either find an exact match or | 196 | // The lookup table is pre-sorted, so we either find an exact match or |