diff options
author | Graham Linden <graham@lindenlab.com> | 2019-09-10 10:19:50 -0700 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2019-09-10 10:19:50 -0700 |
commit | a97f13e16177425cceac9f0c4abf9935bbda9f8c (patch) | |
tree | 4246799b9ce9d8b97d6b9cfd851114dbb214f505 /indra/newview/llagent.cpp | |
parent | cddce7bbb8975c27d561e9868e8a28f48e2a5208 (diff) | |
parent | e241670694959833feaa0e667222b337095eb683 (diff) |
Merge viewer-release 6.3.2
Diffstat (limited to 'indra/newview/llagent.cpp')
-rw-r--r-- | indra/newview/llagent.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 9f0c923253..8b2d591da5 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -743,7 +743,7 @@ BOOL LLAgent::getFlying() const //----------------------------------------------------------------------------- // setFlying() //----------------------------------------------------------------------------- -void LLAgent::setFlying(BOOL fly) +void LLAgent::setFlying(BOOL fly, BOOL fail_sound) { if (isAgentAvatarValid()) { @@ -772,7 +772,10 @@ void LLAgent::setFlying(BOOL fly) // parcel doesn't let you start fly // gods can always fly // and it's OK if you're already flying - make_ui_sound("UISndBadKeystroke"); + if (fail_sound) + { + make_ui_sound("UISndBadKeystroke"); + } return; } if( !was_flying ) |