aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Terrain.BasicTerrain
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Terrain.BasicTerrain')
-rw-r--r--OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
index f52d25a..f37d625 100644
--- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
+++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
@@ -1010,7 +1010,7 @@ namespace OpenSim.Region.Terrain
1010 for (int y = 0; y < copy.h; y++) 1010 for (int y = 0; y < copy.h; y++)
1011 { 1011 {
1012 // 512 is the largest possible height before colours clamp 1012 // 512 is the largest possible height before colours clamp
1013 int colorindex = (int)(Math.Max(Math.Min(1.0, copy.Get(copy.h - y, x) / 512.0), 0.0) * pallete); 1013 int colorindex = (int)(Math.Max(Math.Min(1.0, copy.Get(copy.h - y, x) / 512.0), 0.0) * (pallete - 1));
1014 bmp.SetPixel(x, y, colours[colorindex]); 1014 bmp.SetPixel(x, y, colours[colorindex]);
1015 } 1015 }
1016 } 1016 }