From 4af84b0bb2df2ad85da4f9809edb1401c80a3df3 Mon Sep 17 00:00:00 2001 From: Brian McBee Date: Fri, 23 Nov 2007 03:45:53 +0000 Subject: Fixed Terrain rescale command --- OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Grid.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { if (min != max) { - double val = (map[x, y] - min)*(1.0/max - min); + double val = (map[x, y] - min)*(1.0/(max - min)); val *= maxv - minv; val += minv; -- cgit v1.1