diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs | 48 |
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 |