Don't cancel follow if the target disappears, wait for them
This commit is contained in:
@@ -1822,8 +1822,7 @@ void LLAgent::autoPilot(F32 *delta_yaw)
|
|||||||
auto pos = get_av_pos(mLeaderID);
|
auto pos = get_av_pos(mLeaderID);
|
||||||
if (pos.isExactlyZero()) // Default constructed or invalid from server
|
if (pos.isExactlyZero()) // Default constructed or invalid from server
|
||||||
{
|
{
|
||||||
mAutoPilotBehaviorName.clear(); // Nothing left to follow pilot
|
// Wait for them for more follow pilot
|
||||||
stopAutoPilot();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
standUp(); // Leader not rendered, we mustn't be sitting
|
standUp(); // Leader not rendered, we mustn't be sitting
|
||||||
|
|||||||
Reference in New Issue
Block a user