aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs')
-rw-r--r--OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
index 9c58874..a609623 100644
--- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
+++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
@@ -99,6 +99,22 @@ namespace OpenSim.Region.Terrain
99 tainted++; 99 tainted++;
100 } 100 }
101 101
102 public bool Tainted()
103 {
104 return (tainted != 0);
105 }
106
107 public bool Tainted(int x, int y)
108 {
109 return (heightmap.diff[x / 16, y / 16] != 0);
110 }
111
112 public void ResetTaint()
113 {
114 tainted = 0;
115 heightmap.diff = new int[w / 16, h / 16];
116 }
117
102 /// <summary> 118 /// <summary>
103 /// Checks to make sure the terrain is within baked values +/- maxRaise/minLower 119 /// Checks to make sure the terrain is within baked values +/- maxRaise/minLower
104 /// </summary> 120 /// </summary>