net_game场景的playerData变量改为全局PLY_NET
This commit is contained in:
@@ -5,14 +5,14 @@ return{
|
||||
freshLimit=15,
|
||||
noMod=true,
|
||||
},
|
||||
load=function(playerData)
|
||||
load=function()
|
||||
PLY.newPlayer(1)
|
||||
local N=2
|
||||
for i=1,#playerData do
|
||||
if playerData[i].id==tostring(USER.id)then
|
||||
PLAYERS[1].subID=playerData[1].sid
|
||||
for i=1,#PLY_NET do
|
||||
if PLY_NET[i].id==tostring(USER.id)then
|
||||
PLAYERS[1].subID=PLY_NET[1].sid
|
||||
else
|
||||
PLY.newRemotePlayer(N,false,playerData[i])
|
||||
PLY.newRemotePlayer(N,false,PLY_NET[i])
|
||||
N=N+1
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user