aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs')
-rw-r--r--OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
index f37d625..b54f4fe 100644
--- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
+++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
@@ -88,14 +88,24 @@ namespace OpenSim.Region.Terrain
88 int w, h; 88 int w, h;
89 89
90 /// <summary> 90 /// <summary>
91 /// Used to determine what offset to use when loading singular heightmaps across multiple sims
92 /// </summary>
93 private int offsetX;
94 private int offsetY;
95
96
97 /// <summary>
91 /// Generate a new TerrainEngine instance and creates a new heightmap 98 /// Generate a new TerrainEngine instance and creates a new heightmap
92 /// </summary> 99 /// </summary>
93 public TerrainEngine() 100 public TerrainEngine(int X, int Y)
94 { 101 {
95 w = 256; 102 w = 256;
96 h = 256; 103 h = 256;
97 heightmap = new Channel(w, h); 104 heightmap = new Channel(w, h);
98 105
106 offsetX = X;
107 offsetY = Y;
108
99 tainted++; 109 tainted++;
100 } 110 }
101 111