mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 20:55:43 +08:00
Attempted workaround for Mono's insistence on compiling BasicTerrain incorrectly
This commit is contained in:
@@ -814,6 +814,17 @@ namespace OpenSim.Region.Terrain
|
||||
tainted++;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Wrapper to heightmap.get()
|
||||
/// </summary>
|
||||
/// <param name="x">X coord</param>
|
||||
/// <param name="y">Y coord</param>
|
||||
/// <returns>Height at specified coordinates</returns>
|
||||
public double get(int x, int y)
|
||||
{
|
||||
return heightmap.get(x, y);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies the heightfield by val
|
||||
/// </summary>
|
||||
@@ -827,25 +838,6 @@ namespace OpenSim.Region.Terrain
|
||||
return meep;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the height at the coordinates x,y
|
||||
/// </summary>
|
||||
/// <param name="x">X Coordinate</param>
|
||||
/// <param name="y">Y Coordinate</param>
|
||||
/// <returns></returns>
|
||||
public float this[int x, int y]
|
||||
{
|
||||
get
|
||||
{
|
||||
return (float)heightmap.get(x, y);
|
||||
}
|
||||
set
|
||||
{
|
||||
tainted++;
|
||||
heightmap.set(x, y, (double)value);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Exports the current heightmap to a PNG file
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user