* Fix bug 934

0.6.0-stable
Teravus Ovares 2008-04-11 17:24:04 +00:00
parent e26d4fc085
commit 5e1d8925fa
1 changed files with 7 additions and 1 deletions

View File

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