aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs
index c6a3eb8..f808265 100644
--- a/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs
+++ b/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs
@@ -422,14 +422,14 @@ namespace OpenSim.Terrain
422 { 422 {
423 Bitmap gradientmapLd = new Bitmap(gradientmap); 423 Bitmap gradientmapLd = new Bitmap(gradientmap);
424 424
425 int pallete = gradientmapLd.Width; 425 int pallete = gradientmapLd.Height;
426 426
427 Bitmap bmp = new Bitmap(heightmap.w, heightmap.h); 427 Bitmap bmp = new Bitmap(heightmap.w, heightmap.h);
428 Color[] colours = new Color[pallete]; 428 Color[] colours = new Color[pallete];
429 429
430 for (int i = 0; i < pallete; i++) 430 for (int i = 0; i < pallete; i++)
431 { 431 {
432 colours[i] = gradientmapLd.GetPixel(1, i); 432 colours[i] = gradientmapLd.GetPixel(0, i);
433 } 433 }
434 434
435 Channel copy = heightmap.copy(); 435 Channel copy = heightmap.copy();