diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs b/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs index 491d2e0..b58cce7 100644 --- a/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs +++ b/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs | |||
@@ -315,6 +315,7 @@ namespace OpenSim.Region.Environment.Modules.Terrain | |||
315 | string command = args[1]; | 315 | string command = args[1]; |
316 | string param = args[2]; | 316 | string param = args[2]; |
317 | 317 | ||
318 | int x, y; | ||
318 | 319 | ||
319 | switch (command) | 320 | switch (command) |
320 | { | 321 | { |
@@ -325,6 +326,11 @@ namespace OpenSim.Region.Environment.Modules.Terrain | |||
325 | case "save": | 326 | case "save": |
326 | SaveToFile(param); | 327 | SaveToFile(param); |
327 | break; | 328 | break; |
329 | case "fill": | ||
330 | for (x = 0; x < m_channel.Width; x++) | ||
331 | for (y = 0; y < m_channel.Height; y++) | ||
332 | m_channel[x, y] = Double.Parse(param); | ||
333 | break; | ||
328 | default: | 334 | default: |
329 | m_log.Warn("Unknown terrain command."); | 335 | m_log.Warn("Unknown terrain command."); |
330 | break; | 336 | break; |