* Fixed world map image generator. Has to be run manually right now, but automatic generation is on the cards.

zircon^2
Adam Frisby 2007-05-26 08:05:10 +00:00
parent 79df5f840c
commit 3760bfda24
1 changed files with 2 additions and 2 deletions

View File

@ -422,14 +422,14 @@ namespace OpenSim.Terrain
{ {
Bitmap gradientmapLd = new Bitmap(gradientmap); Bitmap gradientmapLd = new Bitmap(gradientmap);
int pallete = gradientmapLd.Width; int pallete = gradientmapLd.Height;
Bitmap bmp = new Bitmap(heightmap.w, heightmap.h); Bitmap bmp = new Bitmap(heightmap.w, heightmap.h);
Color[] colours = new Color[pallete]; Color[] colours = new Color[pallete];
for (int i = 0; i < pallete; i++) for (int i = 0; i < pallete; i++)
{ {
colours[i] = gradientmapLd.GetPixel(1, i); colours[i] = gradientmapLd.GetPixel(0, i);
} }
Channel copy = heightmap.copy(); Channel copy = heightmap.copy();