Get rid of IScene.PresenceChildStatus() which always had to execute a lookup in favour of IClientAPI.ISceneAgent.IsChildAgent instead.

This commit is contained in:
Justin Clark-Casey (justincc)
2011-12-09 23:07:53 +00:00
parent fc27806e90
commit af3cd00048
7 changed files with 16 additions and 57 deletions

View File

@@ -219,7 +219,7 @@ namespace OpenSim.Region.CoreModules.UDP.Linden
{
if (client is LLClientView)
{
bool isChild = scene.PresenceChildStatus(client.AgentId);
bool isChild = client.SceneAgent.IsChildAgent;
if (isChild && !showChildren)
return;
@@ -308,7 +308,7 @@ namespace OpenSim.Region.CoreModules.UDP.Linden
{
if (client is IStatsCollector)
{
bool isChild = scene.PresenceChildStatus(client.AgentId);
bool isChild = client.SceneAgent.IsChildAgent;
if (isChild && !showChildren)
return;
@@ -404,7 +404,7 @@ namespace OpenSim.Region.CoreModules.UDP.Linden
firstClient = false;
}
bool isChild = scene.PresenceChildStatus(client.AgentId);
bool isChild = client.SceneAgent.IsChildAgent;
if (isChild && !showChildren)
return;