From 8b6dd623bd7e7a1ea3de196ea6bc4d8979c7e921 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Thu, 27 Dec 2007 05:20:03 +0000 Subject: * Added osTerrainSetHeight(int x, int y, double val) to LSL commands * Added osTerrainGetHeight(int x, int y) to LSL commands --- OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (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 f29f42a..e89ff62 100644 --- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs +++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs @@ -1122,6 +1122,21 @@ namespace OpenSim.Region.Terrain } /// + /// Sets a particular heightmap point to a specified value + /// + /// X Coordinate + /// Y Coordinate + /// Value + public void Set(int x, int y, double val) + { + lock (heightmap) + { + heightmap.Set(x, y, val); + } + tainted++; + } + + /// /// Raises land in a sphere around the specified coordinates /// /// Center of the sphere on the X axis -- cgit v1.1