diff --git a/OpenSim/Region/Environment/ParcelManager.cs b/OpenSim/Region/Environment/ParcelManager.cs
index 1cab4ab1c3..3afbe6e800 100644
--- a/OpenSim/Region/Environment/ParcelManager.cs
+++ b/OpenSim/Region/Environment/ParcelManager.cs
@@ -682,8 +682,8 @@ namespace OpenSim.Region.Environment
}
}
}
- parcelData.AABBMin = new LLVector3((float)(min_x * 4), (float)(min_y * 4), m_world.Terrain[(min_x * 4), (min_y * 4)]);
- parcelData.AABBMax = new LLVector3((float)(max_x * 4), (float)(max_y * 4), m_world.Terrain[(max_x * 4), (max_y * 4)]);
+ parcelData.AABBMin = new LLVector3((float)(min_x * 4), (float)(min_y * 4), (float)m_world.Terrain.get((min_x * 4), (min_y * 4)));
+ parcelData.AABBMax = new LLVector3((float)(max_x * 4), (float)(max_y * 4), (float)m_world.Terrain.get((max_x * 4), (max_y * 4)));
parcelData.area = tempArea;
}
diff --git a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
index 0ad60df87e..8bd09e3748 100644
--- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
+++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
@@ -814,6 +814,17 @@ namespace OpenSim.Region.Terrain
tainted++;
}
+ ///
+ /// Wrapper to heightmap.get()
+ ///
+ /// X coord
+ /// Y coord
+ /// Height at specified coordinates
+ public double get(int x, int y)
+ {
+ return heightmap.get(x, y);
+ }
+
///
/// Multiplies the heightfield by val
///
@@ -827,25 +838,6 @@ namespace OpenSim.Region.Terrain
return meep;
}
- ///
- /// Returns the height at the coordinates x,y
- ///
- /// X Coordinate
- /// Y Coordinate
- ///
- public float this[int x, int y]
- {
- get
- {
- return (float)heightmap.get(x, y);
- }
- set
- {
- tainted++;
- heightmap.set(x, y, (double)value);
- }
- }
-
///
/// Exports the current heightmap to a PNG file
///