修复获取用户名的一个小问题,移除测试用代码

This commit is contained in:
MrZ626
2021-06-05 21:18:16 +08:00
parent 1757ba149c
commit 2cdc62f4a2
2 changed files with 1 additions and 11 deletions

View File

@@ -92,7 +92,7 @@ function netPLY.clear()
end
function netPLY.add(p)
p.connected=false
p.username=USERS.getUsername(p.uid)
p.username=p.username
p.place=1e99
p.stat=false
local a=rnd()*6.2832

View File

@@ -137,16 +137,6 @@ function scene.keyDown(key)
elseif not inputBox.hide then
WIDGET.focus(inputBox)
inputBox:keypress(key)
elseif key:find("[123456789]")then
for _=1,tonumber(key)do
netPLY.add{
uid=tostring(6000+#netPLY.list+1),
username="Test Player"..tostring(#netPLY.list+1),
sid=tostring(#netPLY.list+1),
mode=0,
config="",
}
end
elseif playing then
if noKey then return end
local k=keyMap.keyboard[key]