aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
authorMelanie2011-10-12 07:02:36 +0100
committerMelanie2011-10-12 07:02:36 +0100
commit265e9d094d29a53e5f05cfe4927856fb93bc56f0 (patch)
tree35ce0cdc2432a08bd77fe6545104fb1cb9f4dafe /OpenSim/Region/Framework/Scenes/ScenePresence.cs
parentMerge commit '08f264d096e1dca535a64e683fa5ab5918368085' into bigmerge (diff)
parentSimplified IsInTransit property on ScenePresence and removed InTransit() whic... (diff)
downloadopensim-SC-265e9d094d29a53e5f05cfe4927856fb93bc56f0.zip
opensim-SC-265e9d094d29a53e5f05cfe4927856fb93bc56f0.tar.gz
opensim-SC-265e9d094d29a53e5f05cfe4927856fb93bc56f0.tar.bz2
opensim-SC-265e9d094d29a53e5f05cfe4927856fb93bc56f0.tar.xz
Merge commit '9a16e76f5151c11fbf76e41b89f8eb03b1731828' into bigmerge
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs21
1 files changed, 10 insertions, 11 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index c5a241a..925a4f3 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -782,7 +782,16 @@ namespace OpenSim.Region.Framework.Scenes
782 public bool IsInTransit 782 public bool IsInTransit
783 { 783 {
784 get { return m_inTransit; } 784 get { return m_inTransit; }
785 private set { m_inTransit = value; } 785 set {
786 if(value)
787 {
788 if ((PhysicsActor != null) && PhysicsActor.Flying)
789 m_AgentControlFlags |= AgentManager.ControlFlags.AGENT_CONTROL_FLY;
790 else if ((m_AgentControlFlags & AgentManager.ControlFlags.AGENT_CONTROL_FLY) != 0)
791 m_AgentControlFlags &= ~AgentManager.ControlFlags.AGENT_CONTROL_FLY;
792 }
793 m_inTransit = value;
794 }
786 } 795 }
787 796
788 private float m_speedModifier = 1.0f; 797 private float m_speedModifier = 1.0f;
@@ -3298,16 +3307,6 @@ namespace OpenSim.Region.Framework.Scenes
3298 } 3307 }
3299 } 3308 }
3300 3309
3301 public void InTransit()
3302 {
3303 IsInTransit = true;
3304
3305 if ((PhysicsActor != null) && PhysicsActor.Flying)
3306 m_AgentControlFlags |= AgentManager.ControlFlags.AGENT_CONTROL_FLY;
3307 else if ((m_AgentControlFlags & AgentManager.ControlFlags.AGENT_CONTROL_FLY) != 0)
3308 m_AgentControlFlags &= ~AgentManager.ControlFlags.AGENT_CONTROL_FLY;
3309 }
3310
3311 public void NotInTransit() 3310 public void NotInTransit()
3312 { 3311 {
3313 IsInTransit = false; 3312 IsInTransit = false;