Only consider muting a sound as a gesture if it comes from an avatar. Fixes FIRE-1527.

meow-7.2.2
Tonya Souther 2011-06-18 11:53:20 -05:00
parent d039c9bdcd
commit 4363b0a1cd
1 changed files with 2 additions and 1 deletions

View File

@ -4812,7 +4812,8 @@ void process_sound_trigger(LLMessageSystem *msg, void **)
// Don't play sounds from gestures if they are not enabled.
// ...TS: Unless they're your own.
if ((!gSavedSettings.getBOOL("EnableGestureSounds")) &&
(owner_id != gAgent.getID())) return;
(owner_id != gAgent.getID()) &&
(owner_id == object_id)) return;
gAudiop->triggerSound(sound_id, owner_id, gain, LLAudioEngine::AUDIO_TYPE_SFX, pos_global);
}