aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorMelanie2012-06-07 19:01:33 +0200
committerMelanie2012-06-07 19:01:33 +0200
commitf5cbe56c569ad9453a055adba0636cf4a6614ec3 (patch)
treea62238a62425ec68a63238ec91b77f0ffadeb035 /OpenSim/Region
parentTypo correction (diff)
downloadopensim-SC_OLD-f5cbe56c569ad9453a055adba0636cf4a6614ec3.zip
opensim-SC_OLD-f5cbe56c569ad9453a055adba0636cf4a6614ec3.tar.gz
opensim-SC_OLD-f5cbe56c569ad9453a055adba0636cf4a6614ec3.tar.bz2
opensim-SC_OLD-f5cbe56c569ad9453a055adba0636cf4a6614ec3.tar.xz
Make not_at_target stop when the target is reached even if the script
is not listening to at_target
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index 7568888..8fa7880 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -3926,10 +3926,11 @@ namespace OpenSim.Region.Framework.Scenes
3926 scriptPosTarget target = m_targets[idx]; 3926 scriptPosTarget target = m_targets[idx];
3927 if (Util.GetDistanceTo(target.targetPos, m_rootPart.GroupPosition) <= target.tolerance) 3927 if (Util.GetDistanceTo(target.targetPos, m_rootPart.GroupPosition) <= target.tolerance)
3928 { 3928 {
3929 at_target = true;
3930
3929 // trigger at_target 3931 // trigger at_target
3930 if (m_scriptListens_atTarget) 3932 if (m_scriptListens_atTarget)
3931 { 3933 {
3932 at_target = true;
3933 scriptPosTarget att = new scriptPosTarget(); 3934 scriptPosTarget att = new scriptPosTarget();
3934 att.targetPos = target.targetPos; 3935 att.targetPos = target.targetPos;
3935 att.tolerance = target.tolerance; 3936 att.tolerance = target.tolerance;