diff options
author | Adam Frisby | 2007-08-02 20:07:35 +0000 |
---|---|---|
committer | Adam Frisby | 2007-08-02 20:07:35 +0000 |
commit | fcafbc9a4acdcfc06a610fcd298b623c3c1b6670 (patch) | |
tree | fc47a6a4f0b5208d789109e83c73195311a9f1e9 /OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs | |
parent | specify openjpeg with explicit path to current directory. Needed in some (diff) | |
download | opensim-SC_OLD-fcafbc9a4acdcfc06a610fcd298b623c3c1b6670.zip opensim-SC_OLD-fcafbc9a4acdcfc06a610fcd298b623c3c1b6670.tar.gz opensim-SC_OLD-fcafbc9a4acdcfc06a610fcd298b623c3c1b6670.tar.bz2 opensim-SC_OLD-fcafbc9a4acdcfc06a610fcd298b623c3c1b6670.tar.xz |
* Added new "terrain add" command.
Diffstat (limited to 'OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs')
-rw-r--r-- | OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs index 7f60ae2..7130e4b 100644 --- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs +++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs | |||
@@ -352,6 +352,11 @@ namespace OpenSim.Region.Terrain | |||
352 | tainted++; | 352 | tainted++; |
353 | break; | 353 | break; |
354 | 354 | ||
355 | case "add": | ||
356 | heightmap += Convert.ToDouble(args[1]); | ||
357 | tainted++; | ||
358 | break; | ||
359 | |||
355 | case "multiply": | 360 | case "multiply": |
356 | heightmap *= Convert.ToDouble(args[1]); | 361 | heightmap *= Convert.ToDouble(args[1]); |
357 | tainted++; | 362 | tainted++; |