diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneManager.cs | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneManager.cs b/OpenSim/Region/Environment/Scenes/SceneManager.cs index 9f066d3..17d2959 100644 --- a/OpenSim/Region/Environment/Scenes/SceneManager.cs +++ b/OpenSim/Region/Environment/Scenes/SceneManager.cs | |||
@@ -289,26 +289,22 @@ namespace OpenSim.Region.Environment.Scenes | |||
289 | public void SetDebugPacketOnCurrentScene(int newDebug) | 289 | public void SetDebugPacketOnCurrentScene(int newDebug) |
290 | { | 290 | { |
291 | ForEachCurrentScene(delegate(Scene scene) | 291 | ForEachCurrentScene(delegate(Scene scene) |
292 | { | 292 | { |
293 | List<EntityBase> EntitieList = scene.GetEntities(); | 293 | List<ScenePresence> scenePresences = scene.GetScenePresences(); |
294 | 294 | ||
295 | foreach (EntityBase entity in EntitieList) | 295 | foreach (ScenePresence scenePresence in scenePresences) |
296 | { | 296 | { |
297 | if (entity is ScenePresence) | 297 | if (!scenePresence.IsChildAgent) |
298 | { | 298 | { |
299 | ScenePresence scenePrescence = entity as ScenePresence; | 299 | m_log.Error(String.Format("Packet debug for {0} {1} set to {2}", |
300 | if (!scenePrescence.IsChildAgent) | 300 | scenePresence.Firstname, |
301 | { | 301 | scenePresence.Lastname, |
302 | m_log.Error(String.Format("Packet debug for {0} {1} set to {2}", | 302 | newDebug)); |
303 | scenePrescence.Firstname, | 303 | |
304 | scenePrescence.Lastname, | 304 | scenePresence.ControllingClient.SetDebug(newDebug); |
305 | newDebug)); | 305 | } |
306 | 306 | } | |
307 | scenePrescence.ControllingClient.SetDebug(newDebug); | 307 | }); |
308 | } | ||
309 | } | ||
310 | } | ||
311 | }); | ||
312 | } | 308 | } |
313 | 309 | ||
314 | public List<ScenePresence> GetCurrentSceneAvatars() | 310 | public List<ScenePresence> GetCurrentSceneAvatars() |