diff options
author | Adam Frisby | 2007-04-20 14:49:24 +0000 |
---|---|---|
committer | Adam Frisby | 2007-04-20 14:49:24 +0000 |
commit | ae8824985c65cf2005acdafbf62db0d3c7b26860 (patch) | |
tree | 079f3ebd616fe31d6c89a7fb2e372a1eaca10be5 /OpenSim.RegionServer/OpenSimMain.cs | |
parent | Hopefully fixed the forward slash bug in the gridurl set up (diff) | |
download | opensim-SC-ae8824985c65cf2005acdafbf62db0d3c7b26860.zip opensim-SC-ae8824985c65cf2005acdafbf62db0d3c7b26860.tar.gz opensim-SC-ae8824985c65cf2005acdafbf62db0d3c7b26860.tar.bz2 opensim-SC-ae8824985c65cf2005acdafbf62db0d3c7b26860.tar.xz |
Terrain:
* Added 'rescale' command for normalising a terrain between two values
Diffstat (limited to '')
-rw-r--r-- | OpenSim.RegionServer/OpenSimMain.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim.RegionServer/OpenSimMain.cs b/OpenSim.RegionServer/OpenSimMain.cs index b2ee3b6..4321d8a 100644 --- a/OpenSim.RegionServer/OpenSimMain.cs +++ b/OpenSim.RegionServer/OpenSimMain.cs | |||
@@ -540,6 +540,7 @@ namespace OpenSim | |||
540 | m_console.WriteLine("terrain seed <seed> - sets the random seed value to <seed>"); | 540 | m_console.WriteLine("terrain seed <seed> - sets the random seed value to <seed>"); |
541 | m_console.WriteLine("terrain load <type> <filename> - loads a terrain from disk, type can be 'F32', 'F64' or 'IMG'"); | 541 | m_console.WriteLine("terrain load <type> <filename> - loads a terrain from disk, type can be 'F32', 'F64' or 'IMG'"); |
542 | m_console.WriteLine("terrain save <type> <filename> - saves a terrain to disk, type can be 'F32' or 'F64'"); | 542 | m_console.WriteLine("terrain save <type> <filename> - saves a terrain to disk, type can be 'F32' or 'F64'"); |
543 | m_console.WriteLine("terrain rescale <min> <max> - rescales a terrain to be between <min> and <max> meters high"); | ||
543 | break; | 544 | break; |
544 | 545 | ||
545 | case "seed": | 546 | case "seed": |
@@ -550,6 +551,10 @@ namespace OpenSim | |||
550 | LocalWorld.Terrain.hills(); | 551 | LocalWorld.Terrain.hills(); |
551 | break; | 552 | break; |
552 | 553 | ||
554 | case "rescale": | ||
555 | LocalWorld.Terrain.setRange(Convert.ToSingle(args[1]), Convert.ToSingle(args[2])); | ||
556 | break; | ||
557 | |||
553 | case "load": | 558 | case "load": |
554 | switch (args[1].ToLower()) | 559 | switch (args[1].ToLower()) |
555 | { | 560 | { |