Don't cancel follow if the target disappears, wait for them

This commit is contained in:
Liru Færs
2020-01-12 23:57:20 -05:00
parent de47736038
commit d80d232ee5

View File

@@ -1822,8 +1822,7 @@ void LLAgent::autoPilot(F32 *delta_yaw)
auto pos = get_av_pos(mLeaderID);
if (pos.isExactlyZero()) // Default constructed or invalid from server
{
mAutoPilotBehaviorName.clear(); // Nothing left to follow pilot
stopAutoPilot();
// Wait for them for more follow pilot
return;
}
standUp(); // Leader not rendered, we mustn't be sitting