From 79de35aea2d9c694ece9a0d6af7142bdf4aab491 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sat, 2 Jun 2007 03:00:37 +0000 Subject: * Fixing world map generation issues (thankyou LL for using different coordinates than the rest of the graphics community! =p) --- OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/OpenSim.Terrain.BasicTerrain') 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 { // 512 is the largest possible height before colours clamp int colorindex = (int)(Math.Max(Math.Min(1.0, copy.get(x, y) / 512.0), 0.0) * pallete); - bmp.SetPixel(x, y, colours[colorindex]); + bmp.SetPixel(y, 255 - x, colours[colorindex]); } } -- cgit v1.1