修复玩家模块的重大问题

This commit is contained in:
MrZ626
2021-05-07 02:37:28 +08:00
parent 6a335d9c31
commit 177edbf7d6
4 changed files with 19 additions and 28 deletions

View File

@@ -373,7 +373,7 @@ function PLY.newDemoPlayer(id)
}
P:popNext()
end
function PLY.newRemotePlayer(id,mini,uid)
function PLY.newRemotePlayer(id,mini,ply)
local P=newEmptyPlayer(id,mini)
P.type='remote'
P.update=PLY.update.remote_alive
@@ -383,11 +383,11 @@ function PLY.newRemotePlayer(id,mini,uid)
P.stream={}
P.streamProgress=1
netPLY.setPlayerObj(uid,P)
P.uid=uid
P.username=netPLY.getUsername(uid)
P.sid=netPLY.getSID(uid)
loadRemoteEnv(P,netPLY.getConfig(uid))
netPLY.setPlayerObj(ply,P)
P.uid=ply.uid
P.username=ply.username
P.sid=ply.sid
loadRemoteEnv(P,ply.config)
applyGameEnv(P)
end