* Fix bug 934
parent
e26d4fc085
commit
5e1d8925fa
|
@ -1073,6 +1073,12 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
|
||||
heightvalue = 100 - (heightvalue * 100) / 19;
|
||||
|
||||
if (heightvalue > 255)
|
||||
heightvalue = 255;
|
||||
|
||||
if (heightvalue < 0)
|
||||
heightvalue = 0;
|
||||
|
||||
Color water = Color.FromArgb((int)heightvalue, (int)heightvalue, 255);
|
||||
mapbmp.SetPixel(x, (256 - y) - 1, water);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue