mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 03:06:05 +08:00
* Added osTerrainSetHeight(int x, int y, double val) to LSL commands
* Added osTerrainGetHeight(int x, int y) to LSL commands
This commit is contained in:
@@ -1121,6 +1121,21 @@ namespace OpenSim.Region.Terrain
|
||||
heightmap.seed = val;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets a particular heightmap point to a specified value
|
||||
/// </summary>
|
||||
/// <param name="x">X Coordinate</param>
|
||||
/// <param name="y">Y Coordinate</param>
|
||||
/// <param name="val">Value</param>
|
||||
public void Set(int x, int y, double val)
|
||||
{
|
||||
lock (heightmap)
|
||||
{
|
||||
heightmap.Set(x, y, val);
|
||||
}
|
||||
tainted++;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Raises land in a sphere around the specified coordinates
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user