aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-05-26 08:05:10 +0000
committerAdam Frisby2007-05-26 08:05:10 +0000
commit3760bfda24b6da877a304885d6a86261146fc7f7 (patch)
tree50d728f5be6cf81f8a230deb8a02bb0211f221a4 /OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs
parent* Added addNewUserAgent() function. No idea if it breaks compilation since MS... (diff)
downloadopensim-SC_OLD-3760bfda24b6da877a304885d6a86261146fc7f7.zip
opensim-SC_OLD-3760bfda24b6da877a304885d6a86261146fc7f7.tar.gz
opensim-SC_OLD-3760bfda24b6da877a304885d6a86261146fc7f7.tar.bz2
opensim-SC_OLD-3760bfda24b6da877a304885d6a86261146fc7f7.tar.xz
* Fixed world map image generator. Has to be run manually right now, but automatic generation is on the cards.
Diffstat (limited to '')
-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();