* 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 param = args[2];
|
||||
|
||||
int x, y;
|
||||
|
||||
switch (command)
|
||||
{
|
||||
|
@ -325,6 +326,11 @@ namespace OpenSim.Region.Environment.Modules.Terrain
|
|||
case "save":
|
||||
SaveToFile(param);
|
||||
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:
|
||||
m_log.Warn("Unknown terrain command.");
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue