diff options
Diffstat (limited to 'OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs')
-rw-r--r-- | OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs index a0f37f9..c6a3eb8 100644 --- a/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs +++ b/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs | |||
@@ -94,7 +94,7 @@ namespace OpenSim.Terrain | |||
94 | { | 94 | { |
95 | for (y = 0; y < h; y++) | 95 | for (y = 0; y < h; y++) |
96 | { | 96 | { |
97 | heightmap.set(x,y,(double)heights[x,y]); | 97 | heightmap.set(x, y, (double)heights[x, y]); |
98 | } | 98 | } |
99 | } | 99 | } |
100 | tainted++; | 100 | tainted++; |
@@ -290,7 +290,7 @@ namespace OpenSim.Terrain | |||
290 | { | 290 | { |
291 | for (y = 0; y < h; y++) | 291 | for (y = 0; y < h; y++) |
292 | { | 292 | { |
293 | bs.Write(heightmap.get(x,y)); | 293 | bs.Write(heightmap.get(x, y)); |
294 | } | 294 | } |
295 | } | 295 | } |
296 | 296 | ||
@@ -385,7 +385,8 @@ namespace OpenSim.Terrain | |||
385 | /// <param name="meep">The heightfield</param> | 385 | /// <param name="meep">The heightfield</param> |
386 | /// <param name="val">The multiplier</param> | 386 | /// <param name="val">The multiplier</param> |
387 | /// <returns></returns> | 387 | /// <returns></returns> |
388 | public static TerrainEngine operator *(TerrainEngine meep, Double val) { | 388 | public static TerrainEngine operator *(TerrainEngine meep, Double val) |
389 | { | ||
389 | meep.heightmap *= val; | 390 | meep.heightmap *= val; |
390 | meep.tainted++; | 391 | meep.tainted++; |
391 | return meep; | 392 | return meep; |
@@ -401,12 +402,12 @@ namespace OpenSim.Terrain | |||
401 | { | 402 | { |
402 | get | 403 | get |
403 | { | 404 | { |
404 | return (float)heightmap.get(x,y); | 405 | return (float)heightmap.get(x, y); |
405 | } | 406 | } |
406 | set | 407 | set |
407 | { | 408 | { |
408 | tainted++; | 409 | tainted++; |
409 | heightmap.set(x,y,(double)value); | 410 | heightmap.set(x, y, (double)value); |
410 | } | 411 | } |
411 | } | 412 | } |
412 | 413 | ||
@@ -450,4 +451,4 @@ namespace OpenSim.Terrain | |||
450 | } | 451 | } |
451 | } | 452 | } |
452 | } | 453 | } |
453 | } | 454 | } \ No newline at end of file |