Fixed Terrain rescale command
parent
2db19b7d65
commit
4af84b0bb2
|
@ -80,7 +80,7 @@ namespace libTerrain
|
||||||
{
|
{
|
||||||
if (min != max)
|
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 *= maxv - minv;
|
||||||
val += minv;
|
val += minv;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue