aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.RegionServer
diff options
context:
space:
mode:
authorAdam Frisby2007-04-20 14:53:38 +0000
committerAdam Frisby2007-04-20 14:53:38 +0000
commit984235c622027606120667525805eadbb74e1cc3 (patch)
tree091a983f769ed6e6779caa3cc689dd254966d46c /OpenSim.RegionServer
parentTerrain: (diff)
downloadopensim-SC_OLD-984235c622027606120667525805eadbb74e1cc3.zip
opensim-SC_OLD-984235c622027606120667525805eadbb74e1cc3.tar.gz
opensim-SC_OLD-984235c622027606120667525805eadbb74e1cc3.tar.bz2
opensim-SC_OLD-984235c622027606120667525805eadbb74e1cc3.tar.xz
Terrain:
* Added 'multiply' command since rescale doesnt exactly do what Adam wants.
Diffstat (limited to '')
-rw-r--r--OpenSim.RegionServer/OpenSimMain.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim.RegionServer/OpenSimMain.cs b/OpenSim.RegionServer/OpenSimMain.cs
index 4321d8a..edf4c62 100644
--- a/OpenSim.RegionServer/OpenSimMain.cs
+++ b/OpenSim.RegionServer/OpenSimMain.cs
@@ -541,6 +541,7 @@ namespace OpenSim
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 m_console.WriteLine("terrain rescale <min> <max> - rescales a terrain to be between <min> and <max> meters high");
544 m_console.WriteLine("terrain multiply <val> - multiplies a terrain by <val>");
544 break; 545 break;
545 546
546 case "seed": 547 case "seed":
@@ -555,6 +556,10 @@ namespace OpenSim
555 LocalWorld.Terrain.setRange(Convert.ToSingle(args[1]), Convert.ToSingle(args[2])); 556 LocalWorld.Terrain.setRange(Convert.ToSingle(args[1]), Convert.ToSingle(args[2]));
556 break; 557 break;
557 558
559 case "multiply":
560 LocalWorld.Terrain *= Convert.ToDouble(args[1]);
561 break;
562
558 case "load": 563 case "load":
559 switch (args[1].ToLower()) 564 switch (args[1].ToLower())
560 { 565 {