diff options
author | Robert Adams | 2014-02-03 21:21:29 -0800 |
---|---|---|
committer | Robert Adams | 2014-02-03 21:23:32 -0800 |
commit | 1b41ec0a85443b08b9ea8a33215deb9243cd7156 (patch) | |
tree | 4f48c95019cf10b59daca9d6e87297807000adc5 /OpenSim/Region/CoreModules/World/Terrain/Tests | |
parent | Add one check for a blank URL because the module wasn't quite sure not to wor... (diff) | |
download | opensim-SC_OLD-1b41ec0a85443b08b9ea8a33215deb9243cd7156.zip opensim-SC_OLD-1b41ec0a85443b08b9ea8a33215deb9243cd7156.tar.gz opensim-SC_OLD-1b41ec0a85443b08b9ea8a33215deb9243cd7156.tar.bz2 opensim-SC_OLD-1b41ec0a85443b08b9ea8a33215deb9243cd7156.tar.xz |
Fix raw32 terrain heightmap reader so it estimates terrain size from
the size of the input stream. This is required since the raw heightmap
format (.r32) does not contain any size information.
The estimation relies on terrain being square.
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Terrain/Tests')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Terrain/Tests/TerrainTest.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Terrain/Tests/TerrainTest.cs b/OpenSim/Region/CoreModules/World/Terrain/Tests/TerrainTest.cs index 96c16a9..29e80ef 100644 --- a/OpenSim/Region/CoreModules/World/Terrain/Tests/TerrainTest.cs +++ b/OpenSim/Region/CoreModules/World/Terrain/Tests/TerrainTest.cs | |||
@@ -80,7 +80,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain.Tests | |||
80 | effect = new LowerSphere(); | 80 | effect = new LowerSphere(); |
81 | 81 | ||
82 | effect.PaintEffect(map, allowMask, midRegion, midRegion, -1.0, 2, 6.0); | 82 | effect.PaintEffect(map, allowMask, midRegion, midRegion, -1.0, 2, 6.0); |
83 | Assert.That(map[127, midRegion] >= 0.0, "Lower should not lowering value below 0.0 at this point (127,128)."); | 83 | Assert.That(map[127, midRegion] >= 0.0, "Lower should not lowering value below 0.0 at this point (127,128)."); |
84 | Assert.That(map[127, midRegion] == 0.0, "Lower brush should lowering value to 0.0 at this point (127,128)."); | 84 | Assert.That(map[127, midRegion] == 0.0, "Lower brush should lowering value to 0.0 at this point (127,128)."); |
85 | Assert.That(map[125, midRegion] < 1.0, "Lower brush should lowering value at this point (124,128)."); | 85 | Assert.That(map[125, midRegion] < 1.0, "Lower brush should lowering value at this point (124,128)."); |
86 | Assert.That(map[120, midRegion] == 1.0, "Lower brush should not change value at this point (120,128)."); | 86 | Assert.That(map[120, midRegion] == 1.0, "Lower brush should not change value at this point (120,128)."); |