aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorArmin Weatherwax2009-11-27 14:04:22 +0100
committerArmin Weatherwax2009-12-13 20:31:55 +0100
commitd345613880689d38fe6418f47dc19ae855849f92 (patch)
tree3f323700865877ed1963f96a6374675e1aa2175f
parentFixed a little mistake in .gitignore. (diff)
downloadmeta-impy-d345613880689d38fe6418f47dc19ae855849f92.zip
meta-impy-d345613880689d38fe6418f47dc19ae855849f92.tar.gz
meta-impy-d345613880689d38fe6418f47dc19ae855849f92.tar.bz2
meta-impy-d345613880689d38fe6418f47dc19ae855849f92.tar.xz
don't let the voice client spam about ParcelVoiceInfoRequest capability (SNOW-66 fix by me + SNOW-250 fix by Pixel Gausman and Aleric Inglewood )
modified: linden/indra/newview/llvoiceclient.cpp
-rw-r--r--linden/indra/newview/llvoiceclient.cpp15
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 }