网战不再生成没连接成功的玩家对象
This commit is contained in:
@@ -19,8 +19,13 @@ return{
|
|||||||
load=function()
|
load=function()
|
||||||
PLY.newPlayer(1)
|
PLY.newPlayer(1)
|
||||||
PLAYERS[1].sid=netPLY.getSID(USER.uid)
|
PLAYERS[1].sid=netPLY.getSID(USER.uid)
|
||||||
|
local N=2
|
||||||
for i=2,netPLY.getCount()do
|
for i=2,netPLY.getCount()do
|
||||||
PLY.newRemotePlayer(i,false,netPLY.rawgetPLY(i))
|
local p=netPLY.rawgetPLY(i)
|
||||||
|
if p.connected then
|
||||||
|
PLY.newRemotePlayer(N,false,p)
|
||||||
|
N=N+1
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user