From 3760bfda24b6da877a304885d6a86261146fc7f7 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sat, 26 May 2007 08:05:10 +0000 Subject: * Fixed world map image generator. Has to be run manually right now, but automatic generation is on the cards. --- OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs') 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 { Bitmap gradientmapLd = new Bitmap(gradientmap); - int pallete = gradientmapLd.Width; + int pallete = gradientmapLd.Height; Bitmap bmp = new Bitmap(heightmap.w, heightmap.h); Color[] colours = new Color[pallete]; for (int i = 0; i < pallete; i++) { - colours[i] = gradientmapLd.GetPixel(1, i); + colours[i] = gradientmapLd.GetPixel(0, i); } Channel copy = heightmap.copy(); -- cgit v1.1