aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Terrain.BasicTerrain
diff options
context:
space:
mode:
authorAdam Frisby2007-07-02 23:52:18 +0000
committerAdam Frisby2007-07-02 23:52:18 +0000
commit315a49e7fdec9b7612ecf2bd9efd756e9223d6d5 (patch)
tree4ed4053fbc2dea90d75c6fdfd2838c36a7ceca2b /OpenSim/Region/Terrain.BasicTerrain
parentAttempted workaround for Mono's insistence on compiling BasicTerrain incorrectly (diff)
downloadopensim-SC_OLD-315a49e7fdec9b7612ecf2bd9efd756e9223d6d5.zip
opensim-SC_OLD-315a49e7fdec9b7612ecf2bd9efd756e9223d6d5.tar.gz
opensim-SC_OLD-315a49e7fdec9b7612ecf2bd9efd756e9223d6d5.tar.bz2
opensim-SC_OLD-315a49e7fdec9b7612ecf2bd9efd756e9223d6d5.tar.xz
You can now substitute %name% in the filename argument for terrain save & load commands to input the sims name. Useful for sugilite regions where you are running multiple sims in a single instance and need to get them to load or save in a pattern. (Needs cleaning & expansion)
Diffstat (limited to 'OpenSim/Region/Terrain.BasicTerrain')
-rw-r--r--OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
index 8bd09e3..0f450c3 100644
--- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
+++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
@@ -178,7 +178,7 @@ namespace OpenSim.Region.Terrain
178 /// <param name="args">Commandline arguments (space seperated)</param> 178 /// <param name="args">Commandline arguments (space seperated)</param>
179 /// <param name="resultText">Reference that returns error or help text if returning false</param> 179 /// <param name="resultText">Reference that returns error or help text if returning false</param>
180 /// <returns>If the operation was successful (if not, the error is placed into resultText)</returns> 180 /// <returns>If the operation was successful (if not, the error is placed into resultText)</returns>
181 public bool RunTerrainCmd(string[] args, ref string resultText) 181 public bool RunTerrainCmd(string[] args, ref string resultText, string simName)
182 { 182 {
183 string command = args[0]; 183 string command = args[0];
184 184
@@ -248,6 +248,7 @@ namespace OpenSim.Region.Terrain
248 break; 248 break;
249 249
250 case "load": 250 case "load":
251 args[2].Replace("%name%", simName);
251 switch (args[1].ToLower()) 252 switch (args[1].ToLower())
252 { 253 {
253 case "f32": 254 case "f32":
@@ -273,6 +274,7 @@ namespace OpenSim.Region.Terrain
273 break; 274 break;
274 275
275 case "save": 276 case "save":
277 args[2].Replace("%name%", simName);
276 switch (args[1].ToLower()) 278 switch (args[1].ToLower())
277 { 279 {
278 case "f32": 280 case "f32":