diff options
| author | Dave Parks <davep@lindenlab.com> | 2011-05-02 14:52:12 -0500 |
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2011-05-02 14:52:12 -0500 |
| commit | a25f8987032afede673b818fe7544975eba036b5 (patch) | |
| tree | cfa15a82661d407fd9f2031e7dfd6f7e0be48bb2 /indra/newview/llagent.cpp | |
| parent | b9bb792c478d703c6442351ecb563c0a67f77111 (diff) | |
| parent | 43083743747bece13301e2789ab36ed7e4886aba (diff) | |
merge
Diffstat (limited to 'indra/newview/llagent.cpp')
| -rw-r--r-- | indra/newview/llagent.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index aea4e78436..f4023502f6 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -1207,7 +1207,13 @@ BOOL LLAgent::getBusy() const //----------------------------------------------------------------------------- // startAutoPilotGlobal() //----------------------------------------------------------------------------- -void LLAgent::startAutoPilotGlobal(const LLVector3d &target_global, const std::string& behavior_name, const LLQuaternion *target_rotation, void (*finish_callback)(BOOL, void *), void *callback_data, F32 stop_distance, F32 rot_threshold) +void LLAgent::startAutoPilotGlobal( + const LLVector3d &target_global, + const std::string& behavior_name, + const LLQuaternion *target_rotation, + void (*finish_callback)(BOOL, void *), + void *callback_data, + F32 stop_distance, F32 rot_threshold) { if (!isAgentAvatarValid()) { @@ -1238,7 +1244,7 @@ void LLAgent::startAutoPilotGlobal(const LLVector3d &target_global, const std::s else { // Guess at a reasonable stop distance. - mAutoPilotStopDistance = fsqrtf( distance ); + mAutoPilotStopDistance = (F32) sqrt( distance ); if (mAutoPilotStopDistance < 0.5f) { mAutoPilotStopDistance = 0.5f; |
