diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 84792c0..a7341a9 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -5709,7 +5709,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5709 | public LSL_Integer llGetRegionAgentCount() | 5709 | public LSL_Integer llGetRegionAgentCount() |
5710 | { | 5710 | { |
5711 | m_host.AddScriptLPS(1); | 5711 | m_host.AddScriptLPS(1); |
5712 | return new LSL_Integer(World.GetRootAgentCount()); | 5712 | |
5713 | int count = 0; | ||
5714 | World.ForEachRootScenePresence(delegate(ScenePresence sp) { | ||
5715 | count++; | ||
5716 | }); | ||
5717 | |||
5718 | return new LSL_Integer(count); | ||
5713 | } | 5719 | } |
5714 | 5720 | ||
5715 | public LSL_Vector llGetRegionCorner() | 5721 | public LSL_Vector llGetRegionCorner() |