From 96dfb33bca20c44202a9c0dd6393d78fec53416f Mon Sep 17 00:00:00 2001
From: Adam Frisby
Date: Mon, 2 Jul 2007 23:42:38 +0000
Subject: Attempted workaround for Mono's insistence on compiling BasicTerrain
incorrectly
---
.../Region/Terrain.BasicTerrain/TerrainEngine.cs | 30 ++++++++--------------
1 file changed, 11 insertions(+), 19 deletions(-)
(limited to 'OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs')
diff --git a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
index 0ad60df..8bd09e3 100644
--- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
+++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
@@ -815,6 +815,17 @@ namespace OpenSim.Region.Terrain
}
///
+ /// 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
///
/// The heightfield
@@ -828,25 +839,6 @@ namespace OpenSim.Region.Terrain
}
///
- /// 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
///
/// The destination filename for the image
--
cgit v1.1