All back and no one suspected a thing.

zircon^2
MW 2007-05-24 13:37:52 +00:00
parent 900cebc63f
commit 773e1834df
2 changed files with 9 additions and 8 deletions

View File

@ -21,12 +21,12 @@ namespace OpenSim.world
{
case 1:
// raise terrain
Terrain.raise(north, west, 10.0, 0.1);
Terrain.raise(north, west, 10.0, 0.001);
RegenerateTerrain(true, (int)north, (int)west);
break;
case 2:
//lower terrain
Terrain.lower(north, west, 10.0, 0.1);
Terrain.lower(north, west, 10.0, 0.001);
RegenerateTerrain(true, (int)north, (int)west);
break;
}

View File

@ -94,7 +94,7 @@ namespace OpenSim.Terrain
{
for (y = 0; y < h; y++)
{
heightmap.set(x,y,(double)heights[x,y]);
heightmap.set(x, y, (double)heights[x, y]);
}
}
tainted++;
@ -290,7 +290,7 @@ namespace OpenSim.Terrain
{
for (y = 0; y < h; y++)
{
bs.Write(heightmap.get(x,y));
bs.Write(heightmap.get(x, y));
}
}
@ -385,7 +385,8 @@ namespace OpenSim.Terrain
/// <param name="meep">The heightfield</param>
/// <param name="val">The multiplier</param>
/// <returns></returns>
public static TerrainEngine operator *(TerrainEngine meep, Double val) {
public static TerrainEngine operator *(TerrainEngine meep, Double val)
{
meep.heightmap *= val;
meep.tainted++;
return meep;
@ -401,12 +402,12 @@ namespace OpenSim.Terrain
{
get
{
return (float)heightmap.get(x,y);
return (float)heightmap.get(x, y);
}
set
{
tainted++;
heightmap.set(x,y,(double)value);
heightmap.set(x, y, (double)value);
}
}
@ -450,4 +451,4 @@ namespace OpenSim.Terrain
}
}
}
}
}