diff options
author | Steven Bennetts <steve@lindenlab.com> | 2008-04-01 17:45:04 +0000 |
---|---|---|
committer | Steven Bennetts <steve@lindenlab.com> | 2008-04-01 17:45:04 +0000 |
commit | 941cb9f4124c9ccfd5c845bc94639fa46df12c3d (patch) | |
tree | e0f525e7bd6cc76d89b2df69c6f1554d191561e8 /indra/newview/llvoiceclient.cpp | |
parent | ecec626dec93524f7ef5831a5ba344d6449b99bc (diff) |
merge release@83343 skinning-1-merge@83714 -> release
QAR-424
Diffstat (limited to 'indra/newview/llvoiceclient.cpp')
-rw-r--r-- | indra/newview/llvoiceclient.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/indra/newview/llvoiceclient.cpp b/indra/newview/llvoiceclient.cpp index e2ea6e6ecf..56e5062820 100644 --- a/indra/newview/llvoiceclient.cpp +++ b/indra/newview/llvoiceclient.cpp @@ -1204,12 +1204,7 @@ void LLVoiceClient::stateMachine() // Check for parcel boundary crossing { LLViewerRegion *region = gAgent.getRegion(); - LLParcel *parcel = NULL; - - if(gParcelMgr) - { - parcel = gParcelMgr->getAgentParcel(); - } + LLParcel *parcel = LLViewerParcelMgr::getInstance()->getAgentParcel(); if(region && parcel) { @@ -1626,9 +1621,9 @@ void LLVoiceClient::stateMachine() notifyStatusObservers(LLVoiceClientStatusObserver::STATUS_LOGGED_IN); // Set up the mute list observer if it hasn't been set up already. - if((!sMuteListListener_listening) && (gMuteListp)) + if((!sMuteListListener_listening)) { - gMuteListp->addObserver(&mutelist_listener); + LLMuteList::getInstance()->addObserver(&mutelist_listener); sMuteListListener_listening = true; } @@ -3068,7 +3063,7 @@ void LLVoiceClient::updateMuteState(participantState *p) { if(p->mAvatarIDValid) { - bool isMuted = gMuteListp->isMuted(p->mAvatarID, LLMute::flagVoiceChat); + bool isMuted = LLMuteList::getInstance()->isMuted(p->mAvatarID, LLMute::flagVoiceChat); if(p->mOnMuteList != isMuted) { p->mOnMuteList = isMuted; |