Correct comment in follow pilot code

This commit is contained in:
Liru Færs
2020-03-10 16:32:14 -04:00
parent 9f82933149
commit 18fbac26dc

View File

@@ -1782,7 +1782,7 @@ void LLAgent::autoPilot(F32 *delta_yaw)
if (auto object = gObjectList.findObject(mLeaderID))
{
mAutoPilotTargetGlobal = object->getPositionGlobal();
if (const auto& av = object->asAvatar()) // Fly if avatar target is flying
if (const auto& av = object->asAvatar()) // Fly/sit if avatar target is flying
{
const auto& our_pos_global = getPositionGlobal();
setFlying(av->mInAir);