Simplified IsInTransit property on ScenePresence and removed InTransit() which called IsInTransit=true which called m_inTransit=true. Also removed NotInTransit().
parent
08f264d096
commit
9a16e76f51
|
@ -699,7 +699,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
agent.InTransit();
|
agent.IsInTransit = true;
|
||||||
|
|
||||||
neighboury = b.TriggerRegionY;
|
neighboury = b.TriggerRegionY;
|
||||||
neighbourx = b.TriggerRegionX;
|
neighbourx = b.TriggerRegionX;
|
||||||
|
@ -722,7 +722,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
agent.InTransit();
|
agent.IsInTransit = true;
|
||||||
|
|
||||||
neighboury = ba.TriggerRegionY;
|
neighboury = ba.TriggerRegionY;
|
||||||
neighbourx = ba.TriggerRegionX;
|
neighbourx = ba.TriggerRegionX;
|
||||||
|
@ -756,7 +756,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
agent.InTransit();
|
agent.IsInTransit = true;
|
||||||
|
|
||||||
neighboury = ba.TriggerRegionY;
|
neighboury = ba.TriggerRegionY;
|
||||||
neighbourx = ba.TriggerRegionX;
|
neighbourx = ba.TriggerRegionX;
|
||||||
|
@ -788,7 +788,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
agent.InTransit();
|
agent.IsInTransit = true;
|
||||||
|
|
||||||
neighboury = b.TriggerRegionY;
|
neighboury = b.TriggerRegionY;
|
||||||
neighbourx = b.TriggerRegionX;
|
neighbourx = b.TriggerRegionX;
|
||||||
|
@ -876,7 +876,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
agent.InTransit();
|
agent.IsInTransit = true;
|
||||||
|
|
||||||
CrossAgentToNewRegionDelegate d = CrossAgentToNewRegionAsync;
|
CrossAgentToNewRegionDelegate d = CrossAgentToNewRegionAsync;
|
||||||
d.BeginInvoke(agent, newpos, neighbourx, neighboury, neighbourRegion, isFlying, version, CrossAgentToNewRegionCompleted, d);
|
d.BeginInvoke(agent, newpos, neighbourx, neighboury, neighbourRegion, isFlying, version, CrossAgentToNewRegionCompleted, d);
|
||||||
|
@ -1066,7 +1066,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
||||||
agent.RestoreInCurrentScene();
|
agent.RestoreInCurrentScene();
|
||||||
|
|
||||||
// In any case
|
// In any case
|
||||||
agent.NotInTransit();
|
agent.IsInTransit = false;
|
||||||
|
|
||||||
//m_log.DebugFormat("[ENTITY TRANSFER MODULE]: Crossing agent {0} {1} completed.", agent.Firstname, agent.Lastname);
|
//m_log.DebugFormat("[ENTITY TRANSFER MODULE]: Crossing agent {0} {1} completed.", agent.Firstname, agent.Lastname);
|
||||||
}
|
}
|
||||||
|
|
|
@ -718,7 +718,16 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
public bool IsInTransit
|
public bool IsInTransit
|
||||||
{
|
{
|
||||||
get { return m_inTransit; }
|
get { return m_inTransit; }
|
||||||
private set { m_inTransit = value; }
|
set {
|
||||||
|
if(value)
|
||||||
|
{
|
||||||
|
if ((PhysicsActor != null) && PhysicsActor.Flying)
|
||||||
|
m_AgentControlFlags |= AgentManager.ControlFlags.AGENT_CONTROL_FLY;
|
||||||
|
else if ((m_AgentControlFlags & AgentManager.ControlFlags.AGENT_CONTROL_FLY) != 0)
|
||||||
|
m_AgentControlFlags &= ~AgentManager.ControlFlags.AGENT_CONTROL_FLY;
|
||||||
|
}
|
||||||
|
m_inTransit = value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private float m_speedModifier = 1.0f;
|
private float m_speedModifier = 1.0f;
|
||||||
|
@ -2946,16 +2955,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void InTransit()
|
|
||||||
{
|
|
||||||
IsInTransit = true;
|
|
||||||
|
|
||||||
if ((PhysicsActor != null) && PhysicsActor.Flying)
|
|
||||||
m_AgentControlFlags |= AgentManager.ControlFlags.AGENT_CONTROL_FLY;
|
|
||||||
else if ((m_AgentControlFlags & AgentManager.ControlFlags.AGENT_CONTROL_FLY) != 0)
|
|
||||||
m_AgentControlFlags &= ~AgentManager.ControlFlags.AGENT_CONTROL_FLY;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void NotInTransit()
|
public void NotInTransit()
|
||||||
{
|
{
|
||||||
IsInTransit = false;
|
IsInTransit = false;
|
||||||
|
|
Loading…
Reference in New Issue