aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloateractivespeakers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llfloateractivespeakers.cpp')
-rw-r--r--linden/indra/newview/llfloateractivespeakers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/newview/llfloateractivespeakers.cpp b/linden/indra/newview/llfloateractivespeakers.cpp
index ed2f9f8..9aa21d5 100644
--- a/linden/indra/newview/llfloateractivespeakers.cpp
+++ b/linden/indra/newview/llfloateractivespeakers.cpp
@@ -1342,7 +1342,7 @@ void LLLocalSpeakerMgr::updateSpeakerList()
1342 for(avatar_it = LLCharacter::sInstances.begin(); avatar_it != LLCharacter::sInstances.end(); ++avatar_it) 1342 for(avatar_it = LLCharacter::sInstances.begin(); avatar_it != LLCharacter::sInstances.end(); ++avatar_it)
1343 { 1343 {
1344 LLVOAvatar* avatarp = (LLVOAvatar*)*avatar_it; 1344 LLVOAvatar* avatarp = (LLVOAvatar*)*avatar_it;
1345 if (dist_vec(avatarp->getPositionAgent(), gAgent.getPositionAgent()) <= CHAT_NORMAL_RADIUS) 1345 if (!avatarp->isDead() && dist_vec(avatarp->getPositionAgent(), gAgent.getPositionAgent()) <= CHAT_NORMAL_RADIUS)
1346 { 1346 {
1347 setSpeaker(avatarp->getID()); 1347 setSpeaker(avatarp->getID());
1348 } 1348 }
@@ -1356,7 +1356,7 @@ void LLLocalSpeakerMgr::updateSpeakerList()
1356 if (speakerp->mStatus == LLSpeaker::STATUS_TEXT_ONLY) 1356 if (speakerp->mStatus == LLSpeaker::STATUS_TEXT_ONLY)
1357 { 1357 {
1358 LLVOAvatar* avatarp = (LLVOAvatar*)gObjectList.findObject(speaker_id); 1358 LLVOAvatar* avatarp = (LLVOAvatar*)gObjectList.findObject(speaker_id);
1359 if (!avatarp || dist_vec(avatarp->getPositionAgent(), gAgent.getPositionAgent()) > CHAT_NORMAL_RADIUS) 1359 if (!avatarp || avatarp->isDead() || dist_vec(avatarp->getPositionAgent(), gAgent.getPositionAgent()) > CHAT_NORMAL_RADIUS)
1360 { 1360 {
1361 speakerp->mStatus = LLSpeaker::STATUS_NOT_IN_CHANNEL; 1361 speakerp->mStatus = LLSpeaker::STATUS_NOT_IN_CHANNEL;
1362 speakerp->mDotColor = INACTIVE_COLOR; 1362 speakerp->mDotColor = INACTIVE_COLOR;