diff options
author | prep linden <prep@lindenlab.com> | 2011-07-08 17:02:15 -0400 |
---|---|---|
committer | prep linden <prep@lindenlab.com> | 2011-07-08 17:02:15 -0400 |
commit | 55f11fdfd17bdd3d9d0944940c62507741ac6a7b (patch) | |
tree | 69fc810367417fe253143771bc0c9d8d9dd5aee5 /indra/newview/llagent.cpp | |
parent | 3b05866653606c247827747b0e767cd1a2545ac8 (diff) |
Fix for sh-1637 and sh-1638
Diffstat (limited to 'indra/newview/llagent.cpp')
-rw-r--r-- | indra/newview/llagent.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 446ded8096..a8918877f9 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -575,7 +575,10 @@ void LLAgent::setFlying(BOOL fly) // static void LLAgent::toggleFlying() { - LLToolPie::instance().stopClickToWalk(); + if ( gAgent.mAutoPilot ) + { + LLToolPie::instance().stopClickToWalk(); + } BOOL fly = !gAgent.getFlying(); |