修复命令行空白输入报错

closes #63
This commit is contained in:
MrZ626
2021-05-16 14:15:14 +08:00
parent 8636c6dcd5
commit 8101cf89f8
3 changed files with 8 additions and 4 deletions

View File

@@ -1727,7 +1727,7 @@ function Player:lose(force)
for i=A.strength+1,4 do
if A.badge>=ROYALEDATA.powerUp[i]then
A.strength=i
A:setFrameColor(A.strength)
A:setFrameColor(i)
end
end
self.lastRecv=A

View File

@@ -687,7 +687,7 @@ end
function scene.keyDown(k)
if k=="return"then
local input=inputBox:getText()
local input=STRING.trim(inputBox:getText())
if input==""then return end
--Write History
@@ -699,7 +699,6 @@ function scene.keyDown(k)
log""
--Execute
input=input:sub((input:find("%S")))
if input:byte()==35 then
--Execute lua code
log{C.lC,"> "..input}

View File

@@ -27,12 +27,17 @@ return STRING.split([=[
0.14.9: 下午茶 Teatime
新增:
主菜单按钮行为更容易理解,添加连接音效和连接成功音效
重新启用Margin Time机制,但基于帧而不是时间
改动:
词典添加游戏官网词条
聊天窗交互更自然
代码:
升级控件模块
修复:
修改默认空用户名修复结算时显示胜利者可能报错
修改默认空用户名,修复结算时显示胜利者可能报错
对战房间内按钮会触发聊天框
[服务端]有人在连接时退出或掉线会损坏房间无法开局
[服务端]在线人数统计错误
0.14.8: 冰激凌 Icecream
新增: