diff options
author | Brian McBee | 2007-11-23 03:45:53 +0000 |
---|---|---|
committer | Brian McBee | 2007-11-23 03:45:53 +0000 |
commit | 4af84b0bb2df2ad85da4f9809edb1401c80a3df3 (patch) | |
tree | fa19c0fa0c741c4b33b9f43bef79b31069a44dff /OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD | |
parent | * Added more comments (diff) | |
download | opensim-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')
-rw-r--r-- | OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Grid.cs | 2 |
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 | ||