aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Terrain.BasicTerrain
diff options
context:
space:
mode:
authorAdam Frisby2007-12-27 05:20:03 +0000
committerAdam Frisby2007-12-27 05:20:03 +0000
commit8b6dd623bd7e7a1ea3de196ea6bc4d8979c7e921 (patch)
tree7f8ae3971f9ae7038d80b5dc3dc0b5a2aa1f495c /OpenSim/Region/Terrain.BasicTerrain
parent* Added slightly better object sit handling (diff)
downloadopensim-SC_OLD-8b6dd623bd7e7a1ea3de196ea6bc4d8979c7e921.zip
opensim-SC_OLD-8b6dd623bd7e7a1ea3de196ea6bc4d8979c7e921.tar.gz
opensim-SC_OLD-8b6dd623bd7e7a1ea3de196ea6bc4d8979c7e921.tar.bz2
opensim-SC_OLD-8b6dd623bd7e7a1ea3de196ea6bc4d8979c7e921.tar.xz
* Added osTerrainSetHeight(int x, int y, double val) to LSL commands
* Added osTerrainGetHeight(int x, int y) to LSL commands
Diffstat (limited to 'OpenSim/Region/Terrain.BasicTerrain')
-rw-r--r--OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs15
1 files changed, 15 insertions, 0 deletions
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
1122 } 1122 }
1123 1123
1124 /// <summary> 1124 /// <summary>
1125 /// Sets a particular heightmap point to a specified value
1126 /// </summary>
1127 /// <param name="x">X Coordinate</param>
1128 /// <param name="y">Y Coordinate</param>
1129 /// <param name="val">Value</param>
1130 public void Set(int x, int y, double val)
1131 {
1132 lock (heightmap)
1133 {
1134 heightmap.Set(x, y, val);
1135 }
1136 tainted++;
1137 }
1138
1139 /// <summary>
1125 /// Raises land in a sphere around the specified coordinates 1140 /// Raises land in a sphere around the specified coordinates
1126 /// </summary> 1141 /// </summary>
1127 /// <param name="rx">Center of the sphere on the X axis</param> 1142 /// <param name="rx">Center of the sphere on the X axis</param>