aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-08-04 01:05:43 +0100
committerJustin Clark-Casey (justincc)2011-08-04 01:05:43 +0100
commitfc64cc2439278f442839c69a7d98125f47019613 (patch)
tree4966752294836e9ec13f8c6ea50e785b230e12f7 /OpenSim/Region/OptionalModules
parentWhen the NPC reaches within the SIGNIFICANT_CLIENT_MOVEMENT distance of the t... (diff)
downloadopensim-SC_OLD-fc64cc2439278f442839c69a7d98125f47019613.zip
opensim-SC_OLD-fc64cc2439278f442839c69a7d98125f47019613.tar.gz
opensim-SC_OLD-fc64cc2439278f442839c69a7d98125f47019613.tar.bz2
opensim-SC_OLD-fc64cc2439278f442839c69a7d98125f47019613.tar.xz
Make SIGNIFICANT_MOVEMENT SP constant a top-level property so that other classes can use it.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
index fdc3485..a0a24f2 100644
--- a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
+++ b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
@@ -70,7 +70,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
70// presence.Name, presence.AbsolutePosition, presence.MoveToPositionTarget, distanceToTarget); 70// presence.Name, presence.AbsolutePosition, presence.MoveToPositionTarget, distanceToTarget);
71 71
72 // Check the error term of the current position in relation to the target position 72 // Check the error term of the current position in relation to the target position
73 if (distanceToTarget <= 2) 73 if (distanceToTarget <= ScenePresence.SIGNIFICANT_MOVEMENT)
74 { 74 {
75// m_log.DebugFormat("[NPC MODULE]: Stopping movement of npc {0} {1}", presence.Name, presence.UUID); 75// m_log.DebugFormat("[NPC MODULE]: Stopping movement of npc {0} {1}", presence.Name, presence.UUID);
76 // We are close enough to the target for now 76 // We are close enough to the target for now