略微降低客户端发言频率限制

发言id和文本之间加一个空格
框架跟进,修复textBox控件和listBox控件显示范围问题
This commit is contained in:
MrZ_26
2022-11-05 22:59:21 +08:00
parent 267e2dc544
commit c6f92a3030
2 changed files with 3 additions and 3 deletions

View File

@@ -474,7 +474,7 @@ end
-- Room
function NET.room_chat(msg,rid)
if not TASK.lock('chatLimit',1.626) then
if not TASK.lock('chatLimit',1.26) then
MES.new('warn',text.tooFrequent)
elseif #msg>0 then
wsSend(1300,{
@@ -590,7 +590,7 @@ function NET.wsCallBack.room_chat(body)
TASK.unlock('receiveMessage')
TASK.lock('receiveMessage',1)
NET.textBox:push{
COLOR.Z,_getFullName(body.data.playerId),
COLOR.Z,_getFullName(body.data.playerId).." ",
COLOR.N,body.data.message,
}
end