summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermessage.cpp
diff options
context:
space:
mode:
authorJonathan Yap <none@none>2011-06-12 16:00:33 -0400
committerJonathan Yap <none@none>2011-06-12 16:00:33 -0400
commitac504815137ec01767717e7c1a4c419a995f629c (patch)
tree48f34f243169b5c6e0c96aec68470c9050e1bc83 /indra/newview/llviewermessage.cpp
parent12d9d1d3ef76518171ae87aae2467593218f8413 (diff)
STORM-787 Mute Gestures Button
Diffstat (limited to 'indra/newview/llviewermessage.cpp')
-rw-r--r--indra/newview/llviewermessage.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp
index 3832be727f..0aada644f3 100644
--- a/indra/newview/llviewermessage.cpp
+++ b/indra/newview/llviewermessage.cpp
@@ -4332,6 +4332,9 @@ void process_sound_trigger(LLMessageSystem *msg, void **)
{
return;
}
+
+ // Don't play sounds from gestures if they are not enabled.
+ if (!gSavedSettings.getBOOL("EnableGestureSounds")) return;
gAudiop->triggerSound(sound_id, owner_id, gain, LLAudioEngine::AUDIO_TYPE_SFX, pos_global);
}