diff options
author | McCabe Maxsted | 2010-08-03 09:56:02 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-08-07 06:22:46 -0700 |
commit | a8378eec3801b524b5f90ce4f00af1c8bdca6cd1 (patch) | |
tree | 08135a3d507271ceed296773536813a52a9cd0bb | |
parent | Use the correct setting name for LightShare. (diff) | |
download | meta-impy-a8378eec3801b524b5f90ce4f00af1c8bdca6cd1.zip meta-impy-a8378eec3801b524b5f90ce4f00af1c8bdca6cd1.tar.gz meta-impy-a8378eec3801b524b5f90ce4f00af1c8bdca6cd1.tar.bz2 meta-impy-a8378eec3801b524b5f90ce4f00af1c8bdca6cd1.tar.xz |
Avatar sounds now don't disable when from a region above current maturity
-rw-r--r-- | linden/indra/newview/llviewermessage.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp index bc1aedb..140b517 100644 --- a/linden/indra/newview/llviewermessage.cpp +++ b/linden/indra/newview/llviewermessage.cpp | |||
@@ -3931,8 +3931,10 @@ void process_sound_trigger(LLMessageSystem *msg, void **) | |||
3931 | msg->getF32Fast(_PREHASH_SoundData, _PREHASH_Gain, gain); | 3931 | msg->getF32Fast(_PREHASH_SoundData, _PREHASH_Gain, gain); |
3932 | 3932 | ||
3933 | //If we have sounds muted, don't even try to load or trigger the sound. | 3933 | //If we have sounds muted, don't even try to load or trigger the sound. |
3934 | if(gSavedSettings.getBOOL("MuteSounds") || gain == 0.0) | 3934 | if (gSavedSettings.getBOOL("MuteSounds") || gain == 0.0) |
3935 | { | ||
3935 | return; | 3936 | return; |
3937 | } | ||
3936 | 3938 | ||
3937 | // adjust sound location to true global coords | 3939 | // adjust sound location to true global coords |
3938 | LLVector3d pos_global = from_region_handle(region_handle); | 3940 | LLVector3d pos_global = from_region_handle(region_handle); |
@@ -3940,9 +3942,6 @@ void process_sound_trigger(LLMessageSystem *msg, void **) | |||
3940 | pos_global.mdV[VY] += pos_local.mV[VY]; | 3942 | pos_global.mdV[VY] += pos_local.mV[VY]; |
3941 | pos_global.mdV[VZ] += pos_local.mV[VZ]; | 3943 | pos_global.mdV[VZ] += pos_local.mV[VZ]; |
3942 | 3944 | ||
3943 | // Don't play sounds if sound settings are muted. | ||
3944 | if (gSavedSettings.getBOOL("MuteSounds")) return; | ||
3945 | |||
3946 | // Don't play a trigger sound if you can't hear it due | 3945 | // Don't play a trigger sound if you can't hear it due |
3947 | // to parcel "local audio only" settings. | 3946 | // to parcel "local audio only" settings. |
3948 | if (!LLViewerParcelMgr::getInstance()->canHearSound(pos_global)) return; | 3947 | if (!LLViewerParcelMgr::getInstance()->canHearSound(pos_global)) return; |
@@ -3961,10 +3960,11 @@ void process_sound_trigger(LLMessageSystem *msg, void **) | |||
3961 | } | 3960 | } |
3962 | 3961 | ||
3963 | // Don't play sounds from a region with maturity above current agent maturity | 3962 | // Don't play sounds from a region with maturity above current agent maturity |
3964 | if( !gAgent.canAccessMaturityInRegion( region_handle ) ) | 3963 | // Actually, let's -- MC |
3964 | /*if( !gAgent.canAccessMaturityInRegion( region_handle ) ) | ||
3965 | { | 3965 | { |
3966 | return; | 3966 | return; |
3967 | } | 3967 | }*/ |
3968 | 3968 | ||
3969 | gAudiop->triggerSound(sound_id, owner_id, gain, LLAudioEngine::AUDIO_TYPE_SFX, pos_global); | 3969 | gAudiop->triggerSound(sound_id, owner_id, gain, LLAudioEngine::AUDIO_TYPE_SFX, pos_global); |
3970 | } | 3970 | } |