Minor refactoring
parent
9d95f9bcf4
commit
47353ffe48
|
@ -290,22 +290,18 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
{
|
{
|
||||||
ForEachCurrentScene(delegate(Scene scene)
|
ForEachCurrentScene(delegate(Scene scene)
|
||||||
{
|
{
|
||||||
List<EntityBase> EntitieList = scene.GetEntities();
|
List<ScenePresence> scenePresences = scene.GetScenePresences();
|
||||||
|
|
||||||
foreach (EntityBase entity in EntitieList)
|
foreach (ScenePresence scenePresence in scenePresences)
|
||||||
{
|
{
|
||||||
if (entity is ScenePresence)
|
if (!scenePresence.IsChildAgent)
|
||||||
{
|
|
||||||
ScenePresence scenePrescence = entity as ScenePresence;
|
|
||||||
if (!scenePrescence.IsChildAgent)
|
|
||||||
{
|
{
|
||||||
m_log.Error(String.Format("Packet debug for {0} {1} set to {2}",
|
m_log.Error(String.Format("Packet debug for {0} {1} set to {2}",
|
||||||
scenePrescence.Firstname,
|
scenePresence.Firstname,
|
||||||
scenePrescence.Lastname,
|
scenePresence.Lastname,
|
||||||
newDebug));
|
newDebug));
|
||||||
|
|
||||||
scenePrescence.ControllingClient.SetDebug(newDebug);
|
scenePresence.ControllingClient.SetDebug(newDebug);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue