mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user