diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Terrain/Tests/TerrainModuleTests.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/World/Terrain/Tests/TerrainModuleTests.cs b/OpenSim/Region/CoreModules/World/Terrain/Tests/TerrainModuleTests.cs index 6a832bc..9a67966 100644 --- a/OpenSim/Region/CoreModules/World/Terrain/Tests/TerrainModuleTests.cs +++ b/OpenSim/Region/CoreModules/World/Terrain/Tests/TerrainModuleTests.cs | |||
@@ -50,11 +50,11 @@ namespace OpenSim.Region.CoreModules.Terrain.Tests | |||
50 | 50 | ||
51 | // Fillheight of 30 | 51 | // Fillheight of 30 |
52 | { | 52 | { |
53 | double fillHeight = 30; | 53 | float fillHeight = 30; |
54 | 54 | ||
55 | tm.InterfaceFillTerrain(new object[] { fillHeight }); | 55 | tm.InterfaceFillTerrain(new object[] { fillHeight }); |
56 | 56 | ||
57 | double height = scene.Heightmap[128, 128]; | 57 | float height = scene.Heightmap[128, 128]; |
58 | 58 | ||
59 | Assert.AreEqual(fillHeight, height); | 59 | Assert.AreEqual(fillHeight, height); |
60 | } | 60 | } |
@@ -62,11 +62,11 @@ namespace OpenSim.Region.CoreModules.Terrain.Tests | |||
62 | // Max fillheight of 30 | 62 | // Max fillheight of 30 |
63 | // According to http://wiki.secondlife.com/wiki/Tips_for_Creating_Heightfields_and_Details_on_Terrain_RAW_Files#Notes_for_Creating_Height_Field_Maps_for_Second_Life | 63 | // According to http://wiki.secondlife.com/wiki/Tips_for_Creating_Heightfields_and_Details_on_Terrain_RAW_Files#Notes_for_Creating_Height_Field_Maps_for_Second_Life |
64 | { | 64 | { |
65 | double fillHeight = 508; | 65 | float fillHeight = 508; |
66 | 66 | ||
67 | tm.InterfaceFillTerrain(new object[] { fillHeight }); | 67 | tm.InterfaceFillTerrain(new object[] { fillHeight }); |
68 | 68 | ||
69 | double height = scene.Heightmap[128, 128]; | 69 | float height = scene.Heightmap[128, 128]; |
70 | 70 | ||
71 | Assert.AreEqual(fillHeight, height); | 71 | Assert.AreEqual(fillHeight, height); |
72 | } | 72 | } |