diff options
Diffstat (limited to 'linden/indra')
-rw-r--r-- | linden/indra/newview/llvoiceclient.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/linden/indra/newview/llvoiceclient.cpp b/linden/indra/newview/llvoiceclient.cpp index 94407ed..7a41510 100644 --- a/linden/indra/newview/llvoiceclient.cpp +++ b/linden/indra/newview/llvoiceclient.cpp | |||
@@ -1560,6 +1560,7 @@ void LLVoiceClient::stateMachine() | |||
1560 | } | 1560 | } |
1561 | 1561 | ||
1562 | // Check for parcel boundary crossing | 1562 | // Check for parcel boundary crossing |
1563 | if(mVoiceEnabled) | ||
1563 | { | 1564 | { |
1564 | LLViewerRegion *region = gAgent.getRegion(); | 1565 | LLViewerRegion *region = gAgent.getRegion(); |
1565 | LLParcel *parcel = LLViewerParcelMgr::getInstance()->getAgentParcel(); | 1566 | LLParcel *parcel = LLViewerParcelMgr::getInstance()->getAgentParcel(); |
@@ -1590,7 +1591,19 @@ void LLVoiceClient::stateMachine() | |||
1590 | } | 1591 | } |
1591 | else | 1592 | else |
1592 | { | 1593 | { |
1593 | LL_WARNS("Voice") << "region doesn't have ParcelVoiceInfoRequest capability. This is normal for a short time after teleporting, but bad if it persists for very long." << LL_ENDL; | 1594 | static int count = 0; |
1595 | static int count2 = 0; | ||
1596 | static int num = 1; | ||
1597 | ++count; | ||
1598 | if (count % num == 0) | ||
1599 | { | ||
1600 | LL_DEBUGS("Voice") << "region doesn't have ParcelVoiceInfoRequest capability. This is normal for a short time after teleporting, but bad if it persists for very long (" << count << ")." << LL_ENDL; | ||
1601 | if (num < 1000 && ++count2 == 10) | ||
1602 | { | ||
1603 | num *= 10; | ||
1604 | count2 = 0; | ||
1605 | } | ||
1606 | } | ||
1594 | } | 1607 | } |
1595 | } | 1608 | } |
1596 | } | 1609 | } |