diff options
Diffstat (limited to 'OpenSim/Framework/TerrainData.cs')
-rw-r--r-- | OpenSim/Framework/TerrainData.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Framework/TerrainData.cs b/OpenSim/Framework/TerrainData.cs index 1c52a69..9325df2 100644 --- a/OpenSim/Framework/TerrainData.cs +++ b/OpenSim/Framework/TerrainData.cs | |||
@@ -160,7 +160,11 @@ namespace OpenSim.Framework | |||
160 | 160 | ||
161 | public override bool IsTaintedAt(int xx, int yy) | 161 | public override bool IsTaintedAt(int xx, int yy) |
162 | { | 162 | { |
163 | return m_taint[xx / Constants.TerrainPatchSize, yy / Constants.TerrainPatchSize]; | 163 | int tx = xx / Constants.TerrainPatchSize; |
164 | int ty = yy / Constants.TerrainPatchSize; | ||
165 | bool ret = m_taint[tx, ty]; | ||
166 | m_taint[tx, ty] = false; | ||
167 | return ret; | ||
164 | } | 168 | } |
165 | 169 | ||
166 | // TerrainData.GetDatabaseBlob | 170 | // TerrainData.GetDatabaseBlob |
@@ -274,6 +278,7 @@ namespace OpenSim.Framework | |||
274 | m_taint = new bool[SizeX / Constants.TerrainPatchSize, SizeY / Constants.TerrainPatchSize]; | 278 | m_taint = new bool[SizeX / Constants.TerrainPatchSize, SizeY / Constants.TerrainPatchSize]; |
275 | // m_log.DebugFormat("{0} new by dimensions. sizeX={1}, sizeY={2}, sizeZ={3}", LogHeader, SizeX, SizeY, SizeZ); | 279 | // m_log.DebugFormat("{0} new by dimensions. sizeX={1}, sizeY={2}, sizeZ={3}", LogHeader, SizeX, SizeY, SizeZ); |
276 | ClearTaint(); | 280 | ClearTaint(); |
281 | ClearLand(0f); | ||
277 | } | 282 | } |
278 | 283 | ||
279 | public HeightmapTerrainData(short[] cmap, float pCompressionFactor, int pX, int pY, int pZ) : this(pX, pY, pZ) | 284 | public HeightmapTerrainData(short[] cmap, float pCompressionFactor, int pX, int pY, int pZ) : this(pX, pY, pZ) |