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.afrisby
parent
860620c24e
commit
bc86d33dbd
|
@ -64,7 +64,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
|
|
||||||
private bool newForce = false;
|
private bool newForce = false;
|
||||||
private bool newAvatar = false;
|
private bool newAvatar = false;
|
||||||
private bool newCoarseLocations = false;
|
private bool newCoarseLocations = true;
|
||||||
|
|
||||||
protected RegionInfo m_regionInfo;
|
protected RegionInfo m_regionInfo;
|
||||||
protected ulong crossingFromRegion = 0;
|
protected ulong crossingFromRegion = 0;
|
||||||
|
@ -540,7 +540,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
List<ScenePresence> avatars = this.m_scene.RequestAvatarList();
|
List<ScenePresence> avatars = this.m_scene.RequestAvatarList();
|
||||||
for (int i = 0; i < avatars.Count; i++)
|
for (int i = 0; i < avatars.Count; i++)
|
||||||
{
|
{
|
||||||
if (avatars[i] != this) {
|
if (avatars[i] != this && (!avatars[i].childAgent) ) {
|
||||||
CoarseLocations.Add(avatars[i].AbsolutePosition);
|
CoarseLocations.Add(avatars[i].AbsolutePosition);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -763,6 +763,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
this.ControllingClient.CrossRegion(neighbourHandle, newpos, vel, neighbourRegion.ExternalEndPoint, capsPath);
|
this.ControllingClient.CrossRegion(neighbourHandle, newpos, vel, neighbourRegion.ExternalEndPoint, capsPath);
|
||||||
this.MakeChildAgent();
|
this.MakeChildAgent();
|
||||||
this.m_scene.SendKillObject(this.m_localId);
|
this.m_scene.SendKillObject(this.m_localId);
|
||||||
|
this.NotifyMyCoarseLocationChange();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue