diff options
author | Adam Frisby | 2007-06-02 03:00:37 +0000 |
---|---|---|
committer | Adam Frisby | 2007-06-02 03:00:37 +0000 |
commit | 79de35aea2d9c694ece9a0d6af7142bdf4aab491 (patch) | |
tree | 93375a7043b60d5afb496df3879ff372f8afe8bb /OpenSim/OpenSim.Terrain.BasicTerrain | |
parent | * Some commenting on asset server (needs completing) (diff) | |
download | opensim-SC_OLD-79de35aea2d9c694ece9a0d6af7142bdf4aab491.zip opensim-SC_OLD-79de35aea2d9c694ece9a0d6af7142bdf4aab491.tar.gz opensim-SC_OLD-79de35aea2d9c694ece9a0d6af7142bdf4aab491.tar.bz2 opensim-SC_OLD-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 'OpenSim/OpenSim.Terrain.BasicTerrain')
-rw-r--r-- | OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs | 2 |
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 | ||