aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMW2007-08-08 14:50:44 +0000
committerMW2007-08-08 14:50:44 +0000
commit6bfe911af337d0f4919e79fe97e271af1ed0546d (patch)
tree2e8cc57e74b2d978abaf4426330c7ebb7ea9012d
parentAdded ScriptEngine to solution (prebuild.xml) (diff)
downloadopensim-SC_OLD-6bfe911af337d0f4919e79fe97e271af1ed0546d.zip
opensim-SC_OLD-6bfe911af337d0f4919e79fe97e271af1ed0546d.tar.gz
opensim-SC_OLD-6bfe911af337d0f4919e79fe97e271af1ed0546d.tar.bz2
opensim-SC_OLD-6bfe911af337d0f4919e79fe97e271af1ed0546d.tar.xz
Rotated the terrain textures that are created for world map by 90 degree as somehow they had got out of sync with the terrain.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
index e5313b9..4b9c5d6 100644
--- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
+++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
@@ -1100,7 +1100,7 @@ namespace OpenSim.Region.Terrain
1100 for (int x = 0; x < copy.w; x++) 1100 for (int x = 0; x < copy.w; x++)
1101 { 1101 {
1102 // 512 is the largest possible height before colours clamp 1102 // 512 is the largest possible height before colours clamp
1103 int colorindex = (int)(Math.Max(Math.Min(1.0, copy.Get(copy.h - y, x) / 512.0), 0.0) * (pallete - 1)); 1103 int colorindex = (int)(Math.Max(Math.Min(1.0, copy.Get(x, copy.h - y) / 512.0), 0.0) * (pallete - 1));
1104 bmp.SetPixel(x, y, colours[colorindex]); 1104 bmp.SetPixel(x, y, colours[colorindex]);
1105 } 1105 }
1106 } 1106 }