mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Rename ForEachAvatar back to ForEachScenePresence. The other changes
from previous commit which sort out which iterator is used are left intact. A discussion is needed as to what constitutes an avatar vs a ScenePresence.
This commit is contained in:
@@ -507,7 +507,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
|
||||
senseEntity(sp);
|
||||
if ((ts.type & AGENT_BY_USERNAME) != 0)
|
||||
{
|
||||
m_CmdManager.m_ScriptEngine.World.ForEachAvatar(
|
||||
m_CmdManager.m_ScriptEngine.World.ForEachRootScenePresence(
|
||||
delegate (ScenePresence ssp)
|
||||
{
|
||||
if (ssp.Lastname == "Resident")
|
||||
@@ -526,7 +526,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
|
||||
}
|
||||
else
|
||||
{
|
||||
m_CmdManager.m_ScriptEngine.World.ForEachAvatar(senseEntity);
|
||||
m_CmdManager.m_ScriptEngine.World.ForEachRootScenePresence(senseEntity);
|
||||
}
|
||||
return sensedEntities;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user