mirror of
https://github.com/opensim/opensim.git
synced 2026-05-14 18:55:39 +08:00
Rotated the terrain textures that are created for world map by 90 degree as somehow they had got out of sync with the terrain.
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user