* More LSL changes (and fixing a compile warning)

* More attempted fixes for the phantom remoting bug.
afrisby
Adam Frisby 2007-07-17 23:47:45 +00:00
parent 9fc72755ce
commit f65808ab07
2 changed files with 11 additions and 4 deletions

View File

@ -443,12 +443,19 @@ namespace OpenSim.Region.Communications.OGS1
/// <param name="position"></param>
/// <returns></returns>
public bool IncomingArrival(ulong regionHandle, LLUUID agentID, LLVector3 position)
{
try
{
if (this.listeners.ContainsKey(regionHandle))
{
this.listeners[regionHandle].TriggerExpectAvatarCrossing(regionHandle, agentID, position);
return true;
}
}
catch (System.Runtime.Remoting.RemotingException e)
{
MainLog.Instance.Error("Remoting Error: Unable to connect to remote region.\n" + e.ToString());
}
return false;
}
#endregion

View File

@ -136,7 +136,7 @@ namespace OpenSim.Region.Scripting
public Key osAvatarOnSitTarget()
{
//TODO: Follow this as Children is chanced to be of type entity to support ScenePresences
foreach (KeyValuePair<Key, Primitive> Child in Task.Children)
foreach (KeyValuePair<Key, EntityBase> Child in Task.Children)
{
if (Child.Value is ScenePresence)
{