aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
index b6daad6..38523e0 100644
--- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
@@ -439,7 +439,6 @@ namespace OpenSim.Region.Environment.Scenes
439 /// </summary> 439 /// </summary>
440 public void StopMovement() 440 public void StopMovement()
441 { 441 {
442 int x = 0;
443 } 442 }
444 443
445 public void AddNeighbourRegion(ulong regionHandle) 444 public void AddNeighbourRegion(ulong regionHandle)
@@ -624,8 +623,6 @@ namespace OpenSim.Region.Environment.Scenes
624 { 623 {
625 pos = part.AbsolutePosition + offset; 624 pos = part.AbsolutePosition + offset;
626 625
627 double dist = AbsolutePosition.GetDistanceTo(pos);
628
629 if (m_physicsActor != null) 626 if (m_physicsActor != null)
630 { 627 {
631 m_sitAvatarHeight = m_physicsActor.Size.Z; 628 m_sitAvatarHeight = m_physicsActor.Size.Z;
@@ -633,7 +630,7 @@ namespace OpenSim.Region.Environment.Scenes
633 630
634// this doesn't seem to quite work yet.... 631// this doesn't seem to quite work yet....
635// // if we're close, set the avatar position to the target position and forgo autopilot 632// // if we're close, set the avatar position to the target position and forgo autopilot
636// if (dist < 2.5) 633// if (AbsolutePosition.GetDistanceTo(pos) < 2.5)
637// { 634// {
638// autopilot = false; 635// autopilot = false;
639// AbsolutePosition = pos + new LLVector3(0.0f, 0.0f, m_sitAvatarHeight); 636// AbsolutePosition = pos + new LLVector3(0.0f, 0.0f, m_sitAvatarHeight);