From bc86d33dbda39fd16c6ec1024e394d899e6aff4a Mon Sep 17 00:00:00 2001 From: Dalien Talbot Date: Tue, 11 Sep 2007 14:11:21 +0000 Subject: Get rid of extra green men in minimap on region crossings (they were child agents, not delirium tremens - thanks MW!); Get green men when connecting; Update the green men in the region you leave. --- OpenSim/Region/Environment/Scenes/ScenePresence.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index b598d45..6d51fbc 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs @@ -64,7 +64,7 @@ namespace OpenSim.Region.Environment.Scenes private bool newForce = false; private bool newAvatar = false; - private bool newCoarseLocations = false; + private bool newCoarseLocations = true; protected RegionInfo m_regionInfo; protected ulong crossingFromRegion = 0; @@ -540,7 +540,7 @@ namespace OpenSim.Region.Environment.Scenes List avatars = this.m_scene.RequestAvatarList(); for (int i = 0; i < avatars.Count; i++) { - if (avatars[i] != this) { + if (avatars[i] != this && (!avatars[i].childAgent) ) { CoarseLocations.Add(avatars[i].AbsolutePosition); } } @@ -763,6 +763,7 @@ namespace OpenSim.Region.Environment.Scenes this.ControllingClient.CrossRegion(neighbourHandle, newpos, vel, neighbourRegion.ExternalEndPoint, capsPath); this.MakeChildAgent(); this.m_scene.SendKillObject(this.m_localId); + this.NotifyMyCoarseLocationChange(); } } } -- cgit v1.1