From bdac5058c87c0903df90ed340e3c81d70bbdb682 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sat, 2 Aug 2014 01:21:24 +0100 Subject: [PATCH] remove some ischild tests --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 494c9e0008..c3ef314fef 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -5362,7 +5362,7 @@ namespace OpenSim.Region.Framework.Scenes { // where private foreach (ScenePresence p in allpresences) { - if (p.IsChildAgent || p.IsDeleted || p == this || p.ControllingClient == null || !p.ControllingClient.IsActive) + if (p.IsDeleted || p == this || p.ControllingClient == null || !p.ControllingClient.IsActive) continue; // those on not on parcel see me @@ -5377,7 +5377,7 @@ namespace OpenSim.Region.Framework.Scenes { // where public foreach (ScenePresence p in allpresences) { - if (p.IsChildAgent || p.IsDeleted || p == this || p.ControllingClient == null || !p.ControllingClient.IsActive) + if (p.IsDeleted || p == this || p.ControllingClient == null || !p.ControllingClient.IsActive) continue; // those not on parcel dont see me @@ -5402,7 +5402,7 @@ namespace OpenSim.Region.Framework.Scenes { foreach (ScenePresence p in allpresences) { - if (p.IsChildAgent || p.IsDeleted || p == this || p.ControllingClient == null || !p.ControllingClient.IsActive) + if (p.IsDeleted || p == this || p.ControllingClient == null || !p.ControllingClient.IsActive) continue; // only those on previus parcel need receive kills @@ -5426,7 +5426,7 @@ namespace OpenSim.Region.Framework.Scenes foreach (ScenePresence p in allpresences) { - if (p.IsChildAgent || p.IsDeleted || p == this || p.ControllingClient == null || !p.ControllingClient.IsActive) + if (p.IsDeleted || p == this || p.ControllingClient == null || !p.ControllingClient.IsActive) continue; // those not on new parcel dont see me @@ -5453,7 +5453,7 @@ namespace OpenSim.Region.Framework.Scenes foreach (ScenePresence p in allpresences) { - if (p.IsChildAgent || p.IsDeleted || p == this || p.ControllingClient == null || !p.ControllingClient.IsActive) + if (p.IsDeleted || p == this || p.ControllingClient == null || !p.ControllingClient.IsActive) continue; // only those old parcel need receive kills if (previusParcelUUID == p.currentParcelUUID)