aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
diff options
context:
space:
mode:
authorJeff Ames2008-03-25 03:49:08 +0000
committerJeff Ames2008-03-25 03:49:08 +0000
commit9d1b42c39a779c84dd091a817d2f6e5f434777c4 (patch)
tree0c1c0ad1db253daf3f8fa8389d2a5ae98b899c11 /OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
parentFix a couple more warnings. (diff)
downloadopensim-SC_OLD-9d1b42c39a779c84dd091a817d2f6e5f434777c4.zip
opensim-SC_OLD-9d1b42c39a779c84dd091a817d2f6e5f434777c4.tar.gz
opensim-SC_OLD-9d1b42c39a779c84dd091a817d2f6e5f434777c4.tar.bz2
opensim-SC_OLD-9d1b42c39a779c84dd091a817d2f6e5f434777c4.tar.xz
Comment out unused private methods.
Diffstat (limited to 'OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs')
-rw-r--r--OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs48
1 files changed, 22 insertions, 26 deletions
diff --git a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
index 308f35b..4ab535b 100644
--- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
+++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
@@ -310,37 +310,33 @@ namespace OpenSim.Region.Terrain
310 } 310 }
311 } 311 }
312 312
313
314 lastEdit = DateTime.Now; 313 lastEdit = DateTime.Now;
315 314
316 return; 315 return;
317 } 316 }
318 317
319 318// TODO: unused
320 319// /// <summary>
321 320// /// Checks to make sure the terrain is within baked values +/- maxRaise/minLower
322 /// <summary> 321// /// </summary>
323 /// Checks to make sure the terrain is within baked values +/- maxRaise/minLower 322// private void SetTerrainWithinBounds()
324 /// </summary> 323// {
325 private void SetTerrainWithinBounds() 324// int x, y;
326 { 325// for (x = 0; x < w; x++)
327 int x, y; 326// {
328 for (x = 0; x < w; x++) 327// for (y = 0; y < h; y++)
329 { 328// {
330 for (y = 0; y < h; y++) 329// if ((heightmap.Get(x, y) > revertmap.Get(x, y) + maxRaise))
331 { 330// {
332 if ((heightmap.Get(x, y) > revertmap.Get(x, y) + maxRaise)) 331// heightmap.map[x, y] = revertmap.Get(x, y) + maxRaise;
333 { 332// }
334 heightmap.map[x, y] = revertmap.Get(x, y) + maxRaise; 333// if ((heightmap.Get(x, y) > revertmap.Get(x, y) - minLower))
335 } 334// {
336 if ((heightmap.Get(x, y) > revertmap.Get(x, y) - minLower)) 335// heightmap.map[x, y] = revertmap.Get(x, y) - minLower;
337 { 336// }
338 heightmap.map[x, y] = revertmap.Get(x, y) - minLower; 337// }
339 } 338// }
340 } 339// }
341 }
342 }
343
344 340
345 /// <summary> 341 /// <summary>
346 /// Converts the heightmap to a 65536 value 1D floating point array 342 /// Converts the heightmap to a 65536 value 1D floating point array