aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD')
-rw-r--r--OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Grid.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Grid.cs b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Grid.cs
index 4ff8e78..1a86572 100644
--- a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Grid.cs
+++ b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Grid.cs
@@ -96,6 +96,24 @@ namespace libTerrain
96 return this; 96 return this;
97 } 97 }
98 98
99 public Channel Elevate(double meters)
100 {
101 SetDiff();
102
103 int x, y;
104
105 for (x = 0; x < w; x++)
106 {
107 for (y = 0; y < h; y++)
108 {
109 map[x, y] += meters;
110 }
111 }
112
113 return this;
114 }
115
116
99 public Channel Clip() 117 public Channel Clip()
100 { 118 {
101 int x, y; 119 int x, y;