minor: comment out unused Scene.AgentCrossing() to reduce code complexity
parent
15c79a3f16
commit
edfcec5041
|
@ -4037,33 +4037,33 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// Triggered when an agent crosses into this sim. Also happens on initial login.
|
// /// Triggered when an agent crosses into this sim. Also happens on initial login.
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
/// <param name="agentID"></param>
|
// /// <param name="agentID"></param>
|
||||||
/// <param name="position"></param>
|
// /// <param name="position"></param>
|
||||||
/// <param name="isFlying"></param>
|
// /// <param name="isFlying"></param>
|
||||||
public virtual void AgentCrossing(UUID agentID, Vector3 position, bool isFlying)
|
// public virtual void AgentCrossing(UUID agentID, Vector3 position, bool isFlying)
|
||||||
{
|
// {
|
||||||
ScenePresence presence = GetScenePresence(agentID);
|
// ScenePresence presence = GetScenePresence(agentID);
|
||||||
if (presence != null)
|
// if (presence != null)
|
||||||
{
|
// {
|
||||||
try
|
// try
|
||||||
{
|
// {
|
||||||
presence.MakeRootAgent(position, isFlying);
|
// presence.MakeRootAgent(position, isFlying);
|
||||||
}
|
// }
|
||||||
catch (Exception e)
|
// catch (Exception e)
|
||||||
{
|
// {
|
||||||
m_log.ErrorFormat("[SCENE]: Unable to do agent crossing, exception {0}{1}", e.Message, e.StackTrace);
|
// m_log.ErrorFormat("[SCENE]: Unable to do agent crossing, exception {0}{1}", e.Message, e.StackTrace);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
m_log.ErrorFormat(
|
// m_log.ErrorFormat(
|
||||||
"[SCENE]: Could not find presence for agent {0} crossing into scene {1}",
|
// "[SCENE]: Could not find presence for agent {0} crossing into scene {1}",
|
||||||
agentID, RegionInfo.RegionName);
|
// agentID, RegionInfo.RegionName);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// We've got an update about an agent that sees into this region,
|
/// We've got an update about an agent that sees into this region,
|
||||||
|
|
Loading…
Reference in New Issue