From f5a1ab8a1efe2dabe57844bdbaa02e214ffc16b5 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期四, 18 十月 2018 15:52:32 +0800
Subject: [PATCH] 2169【前端】【1.2.0】聊天自动播放语音在无数据时请求过于频繁
---
System/Chat/ChatCenter.cs | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/System/Chat/ChatCenter.cs b/System/Chat/ChatCenter.cs
index 20b9e60..7e6acb1 100644
--- a/System/Chat/ChatCenter.cs
+++ b/System/Chat/ChatCenter.cs
@@ -440,7 +440,10 @@
dict.Add(_decodec.tick, clip);
if (_decodec.playerId == cachePlayerId && cacheTick == _decodec.tick)
{
+ cachePlayerId = 0;
+ cacheTick = 0;
PlaySpeech(clip, cacheLength);
+ RemoveAutoVoice(_decodec.playerId, _decodec.tick);
}
else if (autoPlayVoices.Count > 0)
{
--
Gitblit v1.8.0