Fixed Terrain rescale command

afrisby
Brian McBee 2007-11-23 03:45:53 +00:00
parent 2db19b7d65
commit 4af84b0bb2
1 changed files with 1 additions and 1 deletions

View File

@ -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;