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

@@ -5073,6 +5073,17 @@
<key>Value</key>
<integer>1</integer>
</map>
<key>EnableGestureSoundsSelf</key>
<map>
<key>Comment</key>
<string>Play sounds from your gestures when EnableGestureSounds is false. (Useless otherewise)</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<integer>1</integer>
</map>
<key>EnableMouselook</key>
<map>
<key>Comment</key>

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>