aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-07-24 05:22:33 +0000
committerAdam Frisby2007-07-24 05:22:33 +0000
commitd8997b59d30b63218f594d840d924a10287ce509 (patch)
treef96960b2605c8da0d6b0a0d9a905db28a62fca67 /OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
parent* Terrain Fracture Generator now produces more appropriate results. (diff)
downloadopensim-SC_OLD-d8997b59d30b63218f594d840d924a10287ce509.zip
opensim-SC_OLD-d8997b59d30b63218f594d840d924a10287ce509.tar.gz
opensim-SC_OLD-d8997b59d30b63218f594d840d924a10287ce509.tar.bz2
opensim-SC_OLD-d8997b59d30b63218f594d840d924a10287ce509.tar.xz
* Terrain should now send just updated patches.
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>