From 148ed4063caf6ebcff0f9d35e5d817a8c06f8df2 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sat, 21 Apr 2007 05:57:53 +0000 Subject: Whoops. --- OpenSim.Terrain.BasicTerrain/TerrainEngine.cs | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'OpenSim.Terrain.BasicTerrain/TerrainEngine.cs') diff --git a/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs index 0b066aa..6576ab8 100644 --- a/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs +++ b/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs @@ -11,6 +11,7 @@ namespace OpenSim.Terrain /// A [normally] 256x256 heightmap /// public Channel heightmap; + public int tainted; int w, h; @@ -23,6 +24,7 @@ namespace OpenSim.Terrain h = 256; heightmap = new Channel(w, h); + tainted++; } /// @@ -67,9 +69,11 @@ namespace OpenSim.Terrain { heightmap.map[i / w, i % w] = heights[i]; } + + tainted++; } - public float[,] setHeights2D(float[,] heights) + public void setHeights2D(float[,] heights) { int x, y; for (x = 0; x < w; x++) @@ -79,12 +83,13 @@ namespace OpenSim.Terrain heightmap.set(x,y,(double)heights[x,y]); } } - return heights; + tainted++; } public void setRange(float min, float max) { heightmap.normalise((double)min, (double)max); + tainted++; } /// @@ -108,6 +113,8 @@ namespace OpenSim.Terrain bs.Close(); s.Close(); + + tainted++; } /// @@ -131,6 +138,8 @@ namespace OpenSim.Terrain bs.Close(); s.Close(); + + tainted++; } public void writeToFileF64(string filename) @@ -189,6 +198,8 @@ namespace OpenSim.Terrain { heightmap.raise(rx, ry, size, amount); } + + tainted++; } /// @@ -204,6 +215,8 @@ namespace OpenSim.Terrain { heightmap.lower(rx, ry, size, amount); } + + tainted++; } /// @@ -217,10 +230,13 @@ namespace OpenSim.Terrain heightmap.normalise(); heightmap *= 60.0; // Raise to 60m } + + tainted++; } public static TerrainEngine operator *(TerrainEngine meep, Double val) { meep.heightmap *= val; + meep.tainted++; return meep; } @@ -232,6 +248,7 @@ namespace OpenSim.Terrain } set { + tainted++; heightmap.set(x,y,(double)value); } } -- cgit v1.1