aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
authorMelanie2012-02-22 23:14:29 +0100
committerMelanie2012-02-22 23:14:29 +0100
commit3796e08b5977d363a97a3e2ca27df0f710f2ba2a (patch)
treed580e38990c5dbefc077a066a7b46fbce5c33516 /OpenSim/Region/ScriptEngine/Shared
parentAdjust sit target and the llSetLinkPrimitiveParams sit position hack (diff)
downloadopensim-SC_OLD-3796e08b5977d363a97a3e2ca27df0f710f2ba2a.zip
opensim-SC_OLD-3796e08b5977d363a97a3e2ca27df0f710f2ba2a.tar.gz
opensim-SC_OLD-3796e08b5977d363a97a3e2ca27df0f710f2ba2a.tar.bz2
opensim-SC_OLD-3796e08b5977d363a97a3e2ca27df0f710f2ba2a.tar.xz
Count agents for LSL instead of relying on SceneGraph to have the correct
value. Fixes a reported glitch.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs8
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()