* By popular demand, implemented "script terrain fill <val>"
parent
d340820826
commit
54359ab17b
|
@ -315,6 +315,7 @@ namespace OpenSim.Region.Environment.Modules.Terrain
|
||||||
string command = args[1];
|
string command = args[1];
|
||||||
string param = args[2];
|
string param = args[2];
|
||||||
|
|
||||||
|
int x, y;
|
||||||
|
|
||||||
switch (command)
|
switch (command)
|
||||||
{
|
{
|
||||||
|
@ -325,6 +326,11 @@ namespace OpenSim.Region.Environment.Modules.Terrain
|
||||||
case "save":
|
case "save":
|
||||||
SaveToFile(param);
|
SaveToFile(param);
|
||||||
break;
|
break;
|
||||||
|
case "fill":
|
||||||
|
for (x = 0; x < m_channel.Width; x++)
|
||||||
|
for (y = 0; y < m_channel.Height; y++)
|
||||||
|
m_channel[x, y] = Double.Parse(param);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
m_log.Warn("Unknown terrain command.");
|
m_log.Warn("Unknown terrain command.");
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue