修改默认空用户名,修复结算时显示胜利者可能报错
This commit is contained in:
@@ -99,7 +99,6 @@ end
|
||||
|
||||
function netPLY.getCount()return #PLY end
|
||||
function netPLY.rawgetPLY(i)return PLY[i]end
|
||||
function netPLY.getUsername(uid)return getPLY(uid).username end
|
||||
function netPLY.getSID(uid)return getPLY(uid).sid end
|
||||
function netPLY.getSelfReady()return PLY[1].ready end
|
||||
function netPLY.setPlayerObj(ply,p)ply.p=p end
|
||||
|
||||
@@ -194,7 +194,7 @@ function scene.socketRead(cmd,d)
|
||||
end
|
||||
end
|
||||
if winnerUID then
|
||||
TEXT.show(text.champion:gsub("$1",netPLY.getUsername(winnerUID)),640,260,80,'zoomout',.26)
|
||||
TEXT.show(text.champion:gsub("$1",USERS.getUsername(winnerUID)),640,260,80,'zoomout',.26)
|
||||
end
|
||||
elseif cmd=='stream'then
|
||||
if d.uid~=USER.uid and playing then
|
||||
|
||||
@@ -13,7 +13,7 @@ local function loadAvatar(path)
|
||||
end
|
||||
|
||||
local emptyUser={
|
||||
username="Player",
|
||||
username="_Stacker",
|
||||
motto="",
|
||||
hash="",
|
||||
new=false,
|
||||
|
||||
Reference in New Issue
Block a user