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: case 1:
// raise terrain // raise terrain
Terrain.raise(north, west, 10.0, 0.1); Terrain.raise(north, west, 10.0, 0.001);
RegenerateTerrain(true, (int)north, (int)west); RegenerateTerrain(true, (int)north, (int)west);
break; break;
case 2: case 2:
//lower terrain //lower terrain
Terrain.lower(north, west, 10.0, 0.1); Terrain.lower(north, west, 10.0, 0.001);
RegenerateTerrain(true, (int)north, (int)west); RegenerateTerrain(true, (int)north, (int)west);
break; break;
} }

View File

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