aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-06-02 03:00:37 +0000
committerAdam Frisby2007-06-02 03:00:37 +0000
commit79de35aea2d9c694ece9a0d6af7142bdf4aab491 (patch)
tree93375a7043b60d5afb496df3879ff372f8afe8bb /OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs
parent* Some commenting on asset server (needs completing) (diff)
downloadopensim-SC-79de35aea2d9c694ece9a0d6af7142bdf4aab491.zip
opensim-SC-79de35aea2d9c694ece9a0d6af7142bdf4aab491.tar.gz
opensim-SC-79de35aea2d9c694ece9a0d6af7142bdf4aab491.tar.bz2
opensim-SC-79de35aea2d9c694ece9a0d6af7142bdf4aab491.tar.xz
* Fixing world map generation issues (thankyou LL for using different coordinates than the rest of the graphics community! =p)
Diffstat (limited to '')
-rw-r--r--OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs
index aa785b0..047187a 100644
--- a/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs
+++ b/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs
@@ -469,7 +469,7 @@ namespace OpenSim.Terrain
469 { 469 {
470 // 512 is the largest possible height before colours clamp 470 // 512 is the largest possible height before colours clamp
471 int colorindex = (int)(Math.Max(Math.Min(1.0, copy.get(x, y) / 512.0), 0.0) * pallete); 471 int colorindex = (int)(Math.Max(Math.Min(1.0, copy.get(x, y) / 512.0), 0.0) * pallete);
472 bmp.SetPixel(x, y, colours[colorindex]); 472 bmp.SetPixel(y, 255 - x, colours[colorindex]);
473 } 473 }
474 } 474 }
475 475