diff options
author | Melanie | 2011-01-27 04:14:41 +0100 |
---|---|---|
committer | Melanie | 2011-01-27 04:14:41 +0100 |
commit | c43b892f3a644028391fd02a6c29cb88de5b356f (patch) | |
tree | cd9bf767b7e459abbb5ffeccfa72bdd13ef5fbc0 /OpenSim/Region/Framework/Scenes/ScenePresence.cs | |
parent | Also set Godlike flag. Might be useful (diff) | |
download | opensim-SC_OLD-c43b892f3a644028391fd02a6c29cb88de5b356f.zip opensim-SC_OLD-c43b892f3a644028391fd02a6c29cb88de5b356f.tar.gz opensim-SC_OLD-c43b892f3a644028391fd02a6c29cb88de5b356f.tar.bz2 opensim-SC_OLD-c43b892f3a644028391fd02a6c29cb88de5b356f.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.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index c4ae0f0..c108129 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -142,6 +142,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
142 | { | 142 | { |
143 | get { return m_userFlags; } | 143 | get { return m_userFlags; } |
144 | } | 144 | } |
145 | private TeleportFlags m_teleportFlags; | ||
146 | public TeleportFlags TeleportFlags | ||
147 | { | ||
148 | get { return m_teleportFlags; } | ||
149 | set { m_teleportFlags = value; } | ||
150 | } | ||
145 | 151 | ||
146 | private uint m_requestedSitTargetID; | 152 | private uint m_requestedSitTargetID; |
147 | private UUID m_requestedSitTargetUUID; | 153 | private UUID m_requestedSitTargetUUID; |
@@ -1083,6 +1089,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
1083 | /// </summary> | 1089 | /// </summary> |
1084 | public void MakeChildAgent() | 1090 | public void MakeChildAgent() |
1085 | { | 1091 | { |
1092 | // Reset these so that teleporting in and walking out isn't seen | ||
1093 | // as teleporting back | ||
1094 | m_teleportFlags = TeleportFlags.Default; | ||
1095 | |||
1086 | // It looks like m_animator is set to null somewhere, and MakeChild | 1096 | // It looks like m_animator is set to null somewhere, and MakeChild |
1087 | // is called after that. Probably in aborted teleports. | 1097 | // is called after that. Probably in aborted teleports. |
1088 | if (m_animator == null) | 1098 | if (m_animator == null) |