diff options
author | meta7 | 2010-08-07 17:35:16 -0700 |
---|---|---|
committer | meta7 | 2010-08-07 17:35:16 -0700 |
commit | aa54e8d95eb920869da5c885fc536cfb1ffca90b (patch) | |
tree | c327fe2be54a698020baa027ab672f618b2f3eb6 | |
parent | Get rid of some debug chatter that someone who can't spell left behind. ;) (diff) | |
download | opensim-SC-aa54e8d95eb920869da5c885fc536cfb1ffca90b.zip opensim-SC-aa54e8d95eb920869da5c885fc536cfb1ffca90b.tar.gz opensim-SC-aa54e8d95eb920869da5c885fc536cfb1ffca90b.tar.bz2 opensim-SC-aa54e8d95eb920869da5c885fc536cfb1ffca90b.tar.xz |
Increase sit distance to 256 meters, but leave the initial autopilot process in the picture so sit position can still be raycast by the existing code.
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 6f92a41..cca296e 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -2007,7 +2007,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2007 | if (autopilot) | 2007 | if (autopilot) |
2008 | { // its not a scripted sit | 2008 | { // its not a scripted sit |
2009 | // if (Util.GetDistanceTo(AbsolutePosition, autopilotTarget) < 4.5) | 2009 | // if (Util.GetDistanceTo(AbsolutePosition, autopilotTarget) < 4.5) |
2010 | if( (Math.Abs(AbsolutePosition.X - autopilotTarget.X) < 10.0f) && (Math.Abs(AbsolutePosition.Y - autopilotTarget.Y) < 10.0f) ) | 2010 | if( (Math.Abs(AbsolutePosition.X - autopilotTarget.X) < 256.0f) && (Math.Abs(AbsolutePosition.Y - autopilotTarget.Y) < 256.0f) ) |
2011 | { | 2011 | { |
2012 | autopilot = false; // close enough | 2012 | autopilot = false; // close enough |
2013 | m_lastWorldPosition = m_pos; /* CW - This give us a position to return the avatar to if the part is killed before standup. | 2013 | m_lastWorldPosition = m_pos; /* CW - This give us a position to return the avatar to if the part is killed before standup. |