aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
authorMelanie2011-01-27 04:14:41 +0100
committerMelanie2011-01-27 05:33:46 +0000
commit17801bd78b339a2a85b318f87f8deae11adb8dc2 (patch)
tree9a633c54c61ed770ed1bbe11edaf7eeb57801a2d /OpenSim/Region/Framework/Scenes/ScenePresence.cs
parentAlso set Godlike flag. Might be useful (diff)
downloadopensim-SC_OLD-17801bd78b339a2a85b318f87f8deae11adb8dc2.zip
opensim-SC_OLD-17801bd78b339a2a85b318f87f8deae11adb8dc2.tar.gz
opensim-SC_OLD-17801bd78b339a2a85b318f87f8deae11adb8dc2.tar.bz2
opensim-SC_OLD-17801bd78b339a2a85b318f87f8deae11adb8dc2.tar.xz
Add a TeleportFlags member to SP so we can tell how we got there.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index fa2c7b5..1c276fa 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -130,6 +130,13 @@ namespace OpenSim.Region.Framework.Scenes
130 private bool m_updateflag; 130 private bool m_updateflag;
131 private byte m_movementflag; 131 private byte m_movementflag;
132 private Vector3? m_forceToApply; 132 private Vector3? m_forceToApply;
133 private TeleportFlags m_teleportFlags;
134 public TeleportFlags TeleportFlags
135 {
136 get { return m_teleportFlags; }
137 set { m_teleportFlags = value; }
138 }
139
133 private uint m_requestedSitTargetID; 140 private uint m_requestedSitTargetID;
134 private UUID m_requestedSitTargetUUID; 141 private UUID m_requestedSitTargetUUID;
135 public bool SitGround = false; 142 public bool SitGround = false;
@@ -949,6 +956,10 @@ namespace OpenSim.Region.Framework.Scenes
949 /// </summary> 956 /// </summary>
950 public void MakeChildAgent() 957 public void MakeChildAgent()
951 { 958 {
959 // Reset these so that teleporting in and walking out isn't seen
960 // as teleporting back
961 m_teleportFlags = TeleportFlags.Default;
962
952 // It looks like m_animator is set to null somewhere, and MakeChild 963 // It looks like m_animator is set to null somewhere, and MakeChild
953 // is called after that. Probably in aborted teleports. 964 // is called after that. Probably in aborted teleports.
954 if (m_animator == null) 965 if (m_animator == null)