aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel
diff options
context:
space:
mode:
authorBrian McBee2007-11-23 03:45:53 +0000
committerBrian McBee2007-11-23 03:45:53 +0000
commit4af84b0bb2df2ad85da4f9809edb1401c80a3df3 (patch)
treefa19c0fa0c741c4b33b9f43bef79b31069a44dff /OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel
parent* Added more comments (diff)
downloadopensim-SC-4af84b0bb2df2ad85da4f9809edb1401c80a3df3.zip
opensim-SC-4af84b0bb2df2ad85da4f9809edb1401c80a3df3.tar.gz
opensim-SC-4af84b0bb2df2ad85da4f9809edb1401c80a3df3.tar.bz2
opensim-SC-4af84b0bb2df2ad85da4f9809edb1401c80a3df3.tar.xz
Fixed Terrain rescale command
Diffstat (limited to 'OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel')
-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