diff options
author | Adam Frisby | 2007-08-17 22:57:46 +0000 |
---|---|---|
committer | Adam Frisby | 2007-08-17 22:57:46 +0000 |
commit | 4177f5c4856cffae00d9a7a766c24c9c968bd711 (patch) | |
tree | 24b06f63c1a19d21e3b70531781d95fa7358b45f /OpenSim/Region/Terrain.BasicTerrain | |
parent | * Added new terrain-sim <simname> <terrain commands...> function to run terra... (diff) | |
download | opensim-SC_OLD-4177f5c4856cffae00d9a7a766c24c9c968bd711.zip opensim-SC_OLD-4177f5c4856cffae00d9a7a766c24c9c968bd711.tar.gz opensim-SC_OLD-4177f5c4856cffae00d9a7a766c24c9c968bd711.tar.bz2 opensim-SC_OLD-4177f5c4856cffae00d9a7a766c24c9c968bd711.tar.xz |
* Applied dalien's terrain help patch (thanks!)
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs index f54fd67..af92fe7 100644 --- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs +++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs | |||
@@ -272,7 +272,15 @@ namespace OpenSim.Region.Terrain | |||
272 | /// <returns>If the operation was successful (if not, the error is placed into resultText)</returns> | 272 | /// <returns>If the operation was successful (if not, the error is placed into resultText)</returns> |
273 | public bool RunTerrainCmd(string[] args, ref string resultText, string simName) | 273 | public bool RunTerrainCmd(string[] args, ref string resultText, string simName) |
274 | { | 274 | { |
275 | string command = args[0]; | 275 | string command; |
276 | if (args.Length > 0) | ||
277 | { | ||
278 | command = args[0]; | ||
279 | } | ||
280 | else | ||
281 | { | ||
282 | command = "help"; | ||
283 | } | ||
276 | 284 | ||
277 | try | 285 | try |
278 | { | 286 | { |