Add a much cheaper agent count retrieval method. This is obsoleted by 0.7 so it can be reverted then.

This commit is contained in:
Thomas Grimshaw
2010-04-05 22:08:34 +02:00
parent e0b287961f
commit f34cc6b469
4 changed files with 12 additions and 4 deletions

View File

@@ -5266,7 +5266,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public LSL_Integer llGetRegionAgentCount()
{
m_host.AddScriptLPS(1);
return new LSL_Integer(World.GetAvatars().Count);
return new LSL_Integer(World.GetRootAgentCount());
}
public LSL_Vector llGetRegionCorner()