Rotated the terrain textures that are created for world map by 90 degree as somehow they had got out of sync with the terrain.

afrisby
MW 2007-08-08 14:50:44 +00:00
parent 356f59ac45
commit 6bfe911af3
1 changed files with 1 additions and 1 deletions

View File

@ -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]);
}
}