Make SIGNIFICANT_MOVEMENT SP constant a top-level property so that other classes can use it.

This commit is contained in:
Justin Clark-Casey (justincc)
2011-08-04 01:05:43 +01:00
parent 7f6f100c5a
commit fc64cc2439
2 changed files with 8 additions and 6 deletions

View File

@@ -70,7 +70,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
// presence.Name, presence.AbsolutePosition, presence.MoveToPositionTarget, distanceToTarget);
// Check the error term of the current position in relation to the target position
if (distanceToTarget <= 2)
if (distanceToTarget <= ScenePresence.SIGNIFICANT_MOVEMENT)
{
// m_log.DebugFormat("[NPC MODULE]: Stopping movement of npc {0} {1}", presence.Name, presence.UUID);
// We are close enough to the target for now