aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-04-11 17:24:04 +0000
committerTeravus Ovares2008-04-11 17:24:04 +0000
commit5e1d8925fa8c037187eb65c2ff9a49d1e4000284 (patch)
tree1aa6b01713b557dd21a5e8cbf98ce631a66fc526 /OpenSim/Region/Environment/Scenes/Scene.cs
parent* minor: replace test of CachedUserInfo.RootFolder != null with something mor... (diff)
downloadopensim-SC_OLD-5e1d8925fa8c037187eb65c2ff9a49d1e4000284.zip
opensim-SC_OLD-5e1d8925fa8c037187eb65c2ff9a49d1e4000284.tar.gz
opensim-SC_OLD-5e1d8925fa8c037187eb65c2ff9a49d1e4000284.tar.bz2
opensim-SC_OLD-5e1d8925fa8c037187eb65c2ff9a49d1e4000284.tar.xz
* Fix bug 934
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index 20cdb46..f15ec43 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -1072,7 +1072,13 @@ namespace OpenSim.Region.Environment.Scenes
1072 heightvalue = 0; 1072 heightvalue = 0;
1073 1073
1074 heightvalue = 100 - (heightvalue * 100) / 19; 1074 heightvalue = 100 - (heightvalue * 100) / 19;
1075 1075
1076 if (heightvalue > 255)
1077 heightvalue = 255;
1078
1079 if (heightvalue < 0)
1080 heightvalue = 0;
1081
1076 Color water = Color.FromArgb((int)heightvalue, (int)heightvalue, 255); 1082 Color water = Color.FromArgb((int)heightvalue, (int)heightvalue, 255);
1077 mapbmp.SetPixel(x, (256 - y) - 1, water); 1083 mapbmp.SetPixel(x, (256 - y) - 1, water);
1078 } 1084 }