aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Grid.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Grid.cs b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Grid.cs
index 24df5b9..026499e 100644
--- a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Grid.cs
+++ b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Grid.cs
@@ -80,7 +80,7 @@ namespace libTerrain
80 { 80 {
81 if (min != max) 81 if (min != max)
82 { 82 {
83 double val = (map[x, y] - min)*(1.0/max - min); 83 double val = (map[x, y] - min)*(1.0/(max - min));
84 val *= maxv - minv; 84 val *= maxv - minv;
85 val += minv; 85 val += minv;
86 86