From 6bfe911af337d0f4919e79fe97e271af1ed0546d Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 8 Aug 2007 14:50:44 +0000 Subject: [PATCH] Rotated the terrain textures that are created for world map by 90 degree as somehow they had got out of sync with the terrain. --- OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs index e5313b9418..4b9c5d60d7 100644 --- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs +++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs @@ -1100,7 +1100,7 @@ namespace OpenSim.Region.Terrain for (int x = 0; x < copy.w; x++) { // 512 is the largest possible height before colours clamp - int colorindex = (int)(Math.Max(Math.Min(1.0, copy.Get(copy.h - y, x) / 512.0), 0.0) * (pallete - 1)); + int colorindex = (int)(Math.Max(Math.Min(1.0, copy.Get(x, copy.h - y) / 512.0), 0.0) * (pallete - 1)); bmp.SetPixel(x, y, colours[colorindex]); } }