diff options
author | Adam Frisby | 2008-03-08 21:49:26 +0000 |
---|---|---|
committer | Adam Frisby | 2008-03-08 21:49:26 +0000 |
commit | 54359ab17b7cfd1e0ad34a40cbb18435f415a89c (patch) | |
tree | e2c90d9e9c6c27439bc9280b60a2557e4ed7a17e | |
parent | Added Frist basic version on the VectorRenderModule, that allows scripts to d... (diff) | |
download | opensim-SC_OLD-54359ab17b7cfd1e0ad34a40cbb18435f415a89c.zip opensim-SC_OLD-54359ab17b7cfd1e0ad34a40cbb18435f415a89c.tar.gz opensim-SC_OLD-54359ab17b7cfd1e0ad34a40cbb18435f415a89c.tar.bz2 opensim-SC_OLD-54359ab17b7cfd1e0ad34a40cbb18435f415a89c.tar.xz |
* By popular demand, implemented "script terrain fill <val>"
Diffstat (limited to '')
-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; |