merge changes for storm-1396

meow-7.2.2
Oz Linden 2011-06-30 06:37:25 -04:00
commit ce93fc7fd5
2 changed files with 6 additions and 2 deletions

View File

@ -450,6 +450,7 @@ Jonathan Yap
STORM-899
STORM-1273
STORM-457
STORM-1396
STORM-1292
STORM-1392
STORM-1302

View File

@ -4326,8 +4326,11 @@ void process_sound_trigger(LLMessageSystem *msg, void **)
}
// Don't play sounds from gestures if they are not enabled.
if (!gSavedSettings.getBOOL("EnableGestureSounds")) return;
if (object_id == owner_id && !gSavedSettings.getBOOL("EnableGestureSounds"))
{
return;
}
gAudiop->triggerSound(sound_id, owner_id, gain, LLAudioEngine::AUDIO_TYPE_SFX, pos_global);
}