aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 e5313b9..4b9c5d6 100644
--- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
+++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
@@ -1100,7 +1100,7 @@ namespace OpenSim.Region.Terrain
1100 for (int x = 0; x < copy.w; x++) 1100 for (int x = 0; x < copy.w; x++)
1101 { 1101 {
1102 // 512 is the largest possible height before colours clamp 1102 // 512 is the largest possible height before colours clamp
1103 int colorindex = (int)(Math.Max(Math.Min(1.0, copy.Get(copy.h - y, x) / 512.0), 0.0) * (pallete - 1)); 1103 int colorindex = (int)(Math.Max(Math.Min(1.0, copy.Get(x, copy.h - y) / 512.0), 0.0) * (pallete - 1));
1104 bmp.SetPixel(x, y, colours[colorindex]); 1104 bmp.SetPixel(x, y, colours[colorindex]);
1105 } 1105 }
1106 } 1106 }