aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs10
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs2
2 files changed, 10 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index ab0d397..e5e6fc9 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -1523,7 +1523,7 @@ namespace OpenSim.Region.Framework.Scenes
1523 public void SaveTerrain() 1523 public void SaveTerrain()
1524 { 1524 {
1525 m_storageManager.DataStore.StoreTerrain(Heightmap.GetDoubles(), RegionInfo.RegionID); 1525 m_storageManager.DataStore.StoreTerrain(Heightmap.GetDoubles(), RegionInfo.RegionID);
1526 } 1526 }
1527 1527
1528 public void StoreWindlightProfile(RegionMeta7WindlightData wl) 1528 public void StoreWindlightProfile(RegionMeta7WindlightData wl)
1529 { 1529 {
@@ -4339,6 +4339,14 @@ namespace OpenSim.Region.Framework.Scenes
4339 } 4339 }
4340 4340
4341 /// <summary> 4341 /// <summary>
4342 /// Cheaply return the number of avatars in a region (without fetching a list object)
4343 /// </summary>
4344 public int GetRootAgentCount()
4345 {
4346 return m_sceneGraph.GetRootAgentCount();
4347 }
4348
4349 /// <summary>
4342 /// Return a list of all ScenePresences in this region. This returns child agents as well as root agents. 4350 /// Return a list of all ScenePresences in this region. This returns child agents as well as root agents.
4343 /// This list is a new object, so it can be iterated over without locking. 4351 /// This list is a new object, so it can be iterated over without locking.
4344 /// </summary> 4352 /// </summary>
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 10ebf67..a76f386 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -5266,7 +5266,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5266 public LSL_Integer llGetRegionAgentCount() 5266 public LSL_Integer llGetRegionAgentCount()
5267 { 5267 {
5268 m_host.AddScriptLPS(1); 5268 m_host.AddScriptLPS(1);
5269 return new LSL_Integer(World.GetAvatars().Count); 5269 return new LSL_Integer(World.GetRootAgentCount());
5270 } 5270 }
5271 5271
5272 public LSL_Vector llGetRegionCorner() 5272 public LSL_Vector llGetRegionCorner()