mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
When osNpcMoveToTarget() is called for a sitting avatar then silently do nothing rather than throwing an error.
Resolves http://opensimulator.org/mantis/view.php?id=7311
This commit is contained in:
@@ -234,6 +234,9 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
ScenePresence sp;
|
||||
if (scene.TryGetScenePresence(agentID, out sp))
|
||||
{
|
||||
if (sp.IsSatOnObject || sp.SitGround)
|
||||
return false;
|
||||
|
||||
// m_log.DebugFormat(
|
||||
// "[NPC MODULE]: Moving {0} to {1} in {2}, noFly {3}, landAtTarget {4}",
|
||||
// sp.Name, pos, scene.RegionInfo.RegionName,
|
||||
|
||||
Reference in New Issue
Block a user