diff options
author | Justin Clarke Casey | 2008-02-08 19:56:49 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-02-08 19:56:49 +0000 |
commit | 47353ffe4813c632f87aba6978e52570d5bb2b53 (patch) | |
tree | f76588d36cae98a42000360f778c6fc367fe1fd4 /OpenSim | |
parent | Minor ScenePresence related refactoring (diff) | |
download | opensim-SC-47353ffe4813c632f87aba6978e52570d5bb2b53.zip opensim-SC-47353ffe4813c632f87aba6978e52570d5bb2b53.tar.gz opensim-SC-47353ffe4813c632f87aba6978e52570d5bb2b53.tar.bz2 opensim-SC-47353ffe4813c632f87aba6978e52570d5bb2b53.tar.xz |
Minor refactoring
Diffstat (limited to 'OpenSim')
-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() |