diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs | 4 |
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": |