diff options
author | McCabe Maxsted | 2009-02-14 05:21:14 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-02-14 05:21:14 -0700 |
commit | 7f858539851bac96f2a20e50f7e94010a015808c (patch) | |
tree | 6672cfc655b3a194a4114c9a911945980db95cc5 /linden/indra/newview/llviewermessage.cpp | |
parent | Fixed crash in LLTextEditor::findHTML (diff) | |
download | meta-impy-7f858539851bac96f2a20e50f7e94010a015808c.zip meta-impy-7f858539851bac96f2a20e50f7e94010a015808c.tar.gz meta-impy-7f858539851bac96f2a20e50f7e94010a015808c.tar.bz2 meta-impy-7f858539851bac96f2a20e50f7e94010a015808c.tar.xz |
Fixed sound settings not being correctly muted
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewermessage.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp index 4543ae4..b947f95 100644 --- a/linden/indra/newview/llviewermessage.cpp +++ b/linden/indra/newview/llviewermessage.cpp | |||
@@ -111,6 +111,7 @@ | |||
111 | #include "llui.h" // for make_ui_sound | 111 | #include "llui.h" // for make_ui_sound |
112 | #include "lluploaddialog.h" | 112 | #include "lluploaddialog.h" |
113 | #include "llviewercamera.h" | 113 | #include "llviewercamera.h" |
114 | #include "llviewercontrol.h" | ||
114 | #include "llviewergenericmessage.h" | 115 | #include "llviewergenericmessage.h" |
115 | #include "llviewerinventory.h" | 116 | #include "llviewerinventory.h" |
116 | #include "llviewermenu.h" | 117 | #include "llviewermenu.h" |
@@ -3291,6 +3292,9 @@ void process_sound_trigger(LLMessageSystem *msg, void **) | |||
3291 | pos_global.mdV[VY] += pos_local.mV[VY]; | 3292 | pos_global.mdV[VY] += pos_local.mV[VY]; |
3292 | pos_global.mdV[VZ] += pos_local.mV[VZ]; | 3293 | pos_global.mdV[VZ] += pos_local.mV[VZ]; |
3293 | 3294 | ||
3295 | // Don't play sounds if sound settings are muted. | ||
3296 | if (gSavedSettings.getBOOL("MuteSounds")) return; | ||
3297 | |||
3294 | // Don't play a trigger sound if you can't hear it due | 3298 | // Don't play a trigger sound if you can't hear it due |
3295 | // to parcel "local audio only" settings. | 3299 | // to parcel "local audio only" settings. |
3296 | if (!LLViewerParcelMgr::getInstance()->canHearSound(pos_global)) return; | 3300 | if (!LLViewerParcelMgr::getInstance()->canHearSound(pos_global)) return; |