aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-07-10 23:50:04 +0100
committerJustin Clark-Casey (justincc)2012-07-10 23:50:04 +0100
commitcdea572d2ea0256423a4cd72f132346d88a93e92 (patch)
tree67de79604fb75f0963171d36151c24be7c0fd654 /OpenSim/Region/Framework/Scenes/ScenePresence.cs
parentRevert "refactor: Add SOP.IsSitTargetOccupied to improve readability" (diff)
downloadopensim-SC-cdea572d2ea0256423a4cd72f132346d88a93e92.zip
opensim-SC-cdea572d2ea0256423a4cd72f132346d88a93e92.tar.gz
opensim-SC-cdea572d2ea0256423a4cd72f132346d88a93e92.tar.bz2
opensim-SC-cdea572d2ea0256423a4cd72f132346d88a93e92.tar.xz
refactor: move management of SOP.SitTargetAvatar into SOP.AddSittingAvatar() and SOP.RemoveSittingAvatar()
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs5
1 files changed, 0 insertions, 5 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index a8c98ed..514c314 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -1799,10 +1799,6 @@ namespace OpenSim.Region.Framework.Scenes
1799 } 1799 }
1800 } 1800 }
1801 1801
1802 // Reset sit target.
1803 if (part.SitTargetAvatar == UUID)
1804 part.SitTargetAvatar = UUID.Zero;
1805
1806 ParentPosition = part.GetWorldPosition(); 1802 ParentPosition = part.GetWorldPosition();
1807 ControllingClient.SendClearFollowCamProperties(part.ParentUUID); 1803 ControllingClient.SendClearFollowCamProperties(part.ParentUUID);
1808 1804
@@ -1884,7 +1880,6 @@ namespace OpenSim.Region.Framework.Scenes
1884// "[SCENE PRESENCE]: Sitting {0} on {1} {2} because sit target is set and unoccupied", 1880// "[SCENE PRESENCE]: Sitting {0} on {1} {2} because sit target is set and unoccupied",
1885// Name, part.Name, part.LocalId); 1881// Name, part.Name, part.LocalId);
1886 1882
1887 part.SitTargetAvatar = UUID;
1888 offset = part.SitTargetPosition; 1883 offset = part.SitTargetPosition;
1889 sitOrientation = part.SitTargetOrientation; 1884 sitOrientation = part.SitTargetOrientation;
1890 canSit = true; 1885 canSit = true;