Added EnableGestureSoundsSelf to allow playing the user's gesture sounds even while EnableGestureSounds is false.

This commit is contained in:
Lirusaito
2012-04-21 14:02:11 -04:00
parent 640d9489cb
commit d03b7d052d
2 changed files with 14 additions and 1 deletions

View File

@@ -4853,7 +4853,9 @@ void process_sound_trigger(LLMessageSystem *msg, void **)
// Don't play sounds from gestures if they are not enabled.
if (object_id == owner_id && !gSavedSettings.getBOOL("EnableGestureSounds"))
{
return;
// Don't mute own gestures, if they're not muted.
if(owner_id != gAgent.getID() || !gSavedSettings.getBOOL("EnableGestureSoundsSelf"))
return;
}
// <edit>