aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorDr Scofield2009-04-27 14:04:01 +0000
committerDr Scofield2009-04-27 14:04:01 +0000
commitc91a79c3d2d2effe2adfe58ebe79de91bed6f9ff (patch)
tree8bf6c49af26a153bad5d0fc41ba911efecd61bdb /OpenSim/Region
parentThank you, Orion_Shamroy, for a patch that adds osGetNotecardLine and (diff)
downloadopensim-SC_OLD-c91a79c3d2d2effe2adfe58ebe79de91bed6f9ff.zip
opensim-SC_OLD-c91a79c3d2d2effe2adfe58ebe79de91bed6f9ff.tar.gz
opensim-SC_OLD-c91a79c3d2d2effe2adfe58ebe79de91bed6f9ff.tar.bz2
opensim-SC_OLD-c91a79c3d2d2effe2adfe58ebe79de91bed6f9ff.tar.xz
From: Alan Webb <alan_webb@us.ibm.com>
If an avatar is sitting when the client disconnects, the avatar is not disassociated from the SOG on which (s)he was sat. This produces any, and varied, effects. I have updated RemoveCLient in Scene, to check, and stand the client up immediately prior to disconnect. This seems like the most robust way to handle the situation. Though in this case it might be worth factoring out the animations from other standup processing. It does no harm, but in this case it is entirely redundant.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index c7d32cc..8d134df 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -2196,6 +2196,11 @@ namespace OpenSim.Region.Framework.Scenes
2196 childagentYN = avatar.IsChildAgent; 2196 childagentYN = avatar.IsChildAgent;
2197 } 2197 }
2198 2198
2199 if (avatar.ParentID != 0)
2200 {
2201 avatar.StandUp();
2202 }
2203
2199 try 2204 try
2200 { 2205 {
2201 m_log.DebugFormat( 2206 m_log.DebugFormat(