diff options
author | Bennett Goble <signal@lindenlab.com> | 2021-12-11 10:28:35 -0800 |
---|---|---|
committer | Bennett Goble <signal@lindenlab.com> | 2021-12-11 10:29:37 -0800 |
commit | 0b95b9d008a0878b5d57262e529cef61fb29ea24 (patch) | |
tree | 6e12a7949c9a69a5e1ad170220b4e9a82a453142 /indra/newview/llviewermessage.cpp | |
parent | f729cfc33f258781c5fd85a3d8773bf6149d12db (diff) | |
parent | 9957c28ddc5e5c129af2db662da7d69f1509af65 (diff) |
Merge branch 'master' into SL-15742
Diffstat (limited to 'indra/newview/llviewermessage.cpp')
-rw-r--r-- | indra/newview/llviewermessage.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index 39c891c9c1..9d85586dae 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -38,6 +38,7 @@ #include "llfollowcamparams.h" #include "llinventorydefines.h" #include "lllslconstants.h" +#include "llmaterialtable.h" #include "llregionhandle.h" #include "llsd.h" #include "llsdserialize.h" @@ -3855,6 +3856,11 @@ void process_sound_trigger(LLMessageSystem *msg, void **) return; } + if (LLMaterialTable::basic.isCollisionSound(sound_id) && !gSavedSettings.getBOOL("EnableCollisionSounds")) + { + return; + } + gAudiop->triggerSound(sound_id, owner_id, gain, LLAudioEngine::AUDIO_TYPE_SFX, pos_global); } |