From 06b412c980f92abd2305806ecce113818042aa09 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 6 Jul 2016 17:32:59 +0100 Subject: the bug was actually here --- OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index cddafc5..be992b4 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -4088,7 +4088,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP float dpos = (partpos - mypos).LengthSquared(); if(dcam < dpos) dpos = dcam; - dpos = (float)Math.Sqrt(dpos) + part.ParentGroup.GetBoundsRadius(); + dpos = (float)Math.Sqrt(dpos) - part.ParentGroup.GetBoundsRadius(); if(dpos > cullingrange) continue; @@ -4361,6 +4361,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP HashSet NewGroupsInView = new HashSet(); HashSet GroupsNeedFullUpdate = new HashSet(); + + // will this take for ever ? lock(GroupsInView) { EntityBase[] entities = m_scene.Entities.GetEntities(); @@ -4374,7 +4376,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP float dpos = (grppos - mypos).LengthSquared(); if(dcam < dpos) dpos = dcam; - dpos = (float)Math.Sqrt(dpos) + grp.GetBoundsRadius(); + dpos = (float)Math.Sqrt(dpos) - grp.GetBoundsRadius(); if(dpos > cullingrange) { if(GroupsInView.Contains(grp)) -- cgit v1.1