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