If object sitting while following, bypass follow logic block

This commit is contained in:
Liru Færs
2020-01-17 01:29:23 -05:00
parent 5c8c5a2c45
commit 686795618a

View File

@@ -1772,9 +1772,10 @@ void LLAgent::autoPilot(F32 *delta_yaw)
{
if (mAutoPilot && isAgentAvatarValid())
{
U8 follow = mLeaderID.notNull(); //mAutoPilotBehaviorName == "Follow";
U8 follow = mAutoPilotBehaviorName == "Follow";
if (follow)
{
llassert(mLeaderID.notNull());
if (auto object = gObjectList.findObject(mLeaderID))
{
mAutoPilotTargetGlobal = object->getPositionGlobal();