[Follow] Fix orbiting leader after follow sitting and standing up

This commit is contained in:
Liru Færs
2020-01-17 01:32:05 -05:00
parent 686795618a
commit 2eff62ad0d

View File

@@ -1734,8 +1734,7 @@ void LLAgent::stopAutoPilot(BOOL user_cancel)
// Sit response during follow pilot, now complete, resume follow
if (!user_cancel && mAutoPilotBehaviorName == "Sit" && mLeaderID.notNull())
{
mAutoPilotBehaviorName = "Follow";
mAutoPilot = true;
startFollowPilot(mLeaderID, true, gSavedSettings.getF32("SinguFollowDistance"));
return;
}