From 773e1834df94c291431f05037c20d329768ac71a Mon Sep 17 00:00:00 2001 From: MW Date: Thu, 24 May 2007 13:37:52 +0000 Subject: All back and no one suspected a thing. --- OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs | 4 ++-- OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs | 13 +++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs b/OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs index 348cd30..4f32335 100644 --- a/OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs +++ b/OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs @@ -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; } diff --git a/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs index a0f37f9..c6a3eb8 100644 --- a/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs +++ b/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs @@ -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 /// The heightfield /// The multiplier /// - 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 } } } -} +} \ No newline at end of file -- cgit v1.1