diff options
author | Robert Adams | 2014-01-28 16:25:01 -0800 |
---|---|---|
committer | Robert Adams | 2014-01-28 16:25:01 -0800 |
commit | 0c3493f61965ab3fcd16217f72ed2ae7a347130c (patch) | |
tree | d9b3feb941d78abd0ec3635a3ff370b22086079b /OpenSim/Framework | |
parent | Fix terrain tests by properly initializing low detail terrain to zero height. (diff) | |
download | opensim-SC-0c3493f61965ab3fcd16217f72ed2ae7a347130c.zip opensim-SC-0c3493f61965ab3fcd16217f72ed2ae7a347130c.tar.gz opensim-SC-0c3493f61965ab3fcd16217f72ed2ae7a347130c.tar.bz2 opensim-SC-0c3493f61965ab3fcd16217f72ed2ae7a347130c.tar.xz |
clear land tainting when tested. Then testing, pass scene to LandObject as now needed to get region size
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/TerrainData.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Framework/TerrainData.cs b/OpenSim/Framework/TerrainData.cs index d1e0e7e..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 |