Minor refactoring
parent
9d95f9bcf4
commit
47353ffe48
|
@ -289,26 +289,22 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
public void SetDebugPacketOnCurrentScene(int newDebug)
|
public void SetDebugPacketOnCurrentScene(int newDebug)
|
||||||
{
|
{
|
||||||
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;
|
m_log.Error(String.Format("Packet debug for {0} {1} set to {2}",
|
||||||
if (!scenePrescence.IsChildAgent)
|
scenePresence.Firstname,
|
||||||
{
|
scenePresence.Lastname,
|
||||||
m_log.Error(String.Format("Packet debug for {0} {1} set to {2}",
|
newDebug));
|
||||||
scenePrescence.Firstname,
|
|
||||||
scenePrescence.Lastname,
|
|
||||||
newDebug));
|
|
||||||
|
|
||||||
scenePrescence.ControllingClient.SetDebug(newDebug);
|
scenePresence.ControllingClient.SetDebug(newDebug);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<ScenePresence> GetCurrentSceneAvatars()
|
public List<ScenePresence> GetCurrentSceneAvatars()
|
||||||
|
|
Loading…
Reference in New Issue