summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermessage.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2011-06-15 11:57:13 -0400
committerOz Linden <oz@lindenlab.com>2011-06-15 11:57:13 -0400
commit81afbd5b293e80248daddb51e7985e474abe9d45 (patch)
tree5876324036ffa822e3792ab8c1c83f984349515c /indra/newview/llviewermessage.cpp
parent83cb59e45b56cd6b3f42de760bc64a8203913251 (diff)
parent0c8b3ea7448a9da069d20fdf3d48a6feec7eb33f (diff)
merge changes for storm-787
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);
}