diff options
Diffstat (limited to 'linden/indra/newview/llfloateractivespeakers.cpp')
-rw-r--r-- | linden/indra/newview/llfloateractivespeakers.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/newview/llfloateractivespeakers.cpp b/linden/indra/newview/llfloateractivespeakers.cpp index 2352be3..4561110 100644 --- a/linden/indra/newview/llfloateractivespeakers.cpp +++ b/linden/indra/newview/llfloateractivespeakers.cpp | |||
@@ -1363,7 +1363,7 @@ void LLLocalSpeakerMgr::updateSpeakerList() | |||
1363 | for(avatar_it = LLCharacter::sInstances.begin(); avatar_it != LLCharacter::sInstances.end(); ++avatar_it) | 1363 | for(avatar_it = LLCharacter::sInstances.begin(); avatar_it != LLCharacter::sInstances.end(); ++avatar_it) |
1364 | { | 1364 | { |
1365 | LLVOAvatar* avatarp = (LLVOAvatar*)*avatar_it; | 1365 | LLVOAvatar* avatarp = (LLVOAvatar*)*avatar_it; |
1366 | if (dist_vec(avatarp->getPositionAgent(), gAgent.getPositionAgent()) <= CHAT_NORMAL_RADIUS) | 1366 | if (!avatarp->isDead() && dist_vec(avatarp->getPositionAgent(), gAgent.getPositionAgent()) <= CHAT_NORMAL_RADIUS) |
1367 | { | 1367 | { |
1368 | setSpeaker(avatarp->getID()); | 1368 | setSpeaker(avatarp->getID()); |
1369 | } | 1369 | } |
@@ -1377,7 +1377,7 @@ void LLLocalSpeakerMgr::updateSpeakerList() | |||
1377 | if (speakerp->mStatus == LLSpeaker::STATUS_TEXT_ONLY) | 1377 | if (speakerp->mStatus == LLSpeaker::STATUS_TEXT_ONLY) |
1378 | { | 1378 | { |
1379 | LLVOAvatar* avatarp = (LLVOAvatar*)gObjectList.findObject(speaker_id); | 1379 | LLVOAvatar* avatarp = (LLVOAvatar*)gObjectList.findObject(speaker_id); |
1380 | if (!avatarp || dist_vec(avatarp->getPositionAgent(), gAgent.getPositionAgent()) > CHAT_NORMAL_RADIUS) | 1380 | if (!avatarp || avatarp->isDead() || dist_vec(avatarp->getPositionAgent(), gAgent.getPositionAgent()) > CHAT_NORMAL_RADIUS) |
1381 | { | 1381 | { |
1382 | speakerp->mStatus = LLSpeaker::STATUS_NOT_IN_CHANNEL; | 1382 | speakerp->mStatus = LLSpeaker::STATUS_NOT_IN_CHANNEL; |
1383 | speakerp->mDotColor = INACTIVE_COLOR; | 1383 | speakerp->mDotColor = INACTIVE_COLOR; |