继续完善联网,调整玩家数据初始化过程

This commit is contained in:
MrZ626
2021-04-05 23:31:39 +08:00
parent d4a29db051
commit e9fd74ef5d
3 changed files with 32 additions and 8 deletions

View File

@@ -134,6 +134,9 @@ local function newEmptyPlayer(id,mini)
P.atker,P.atking,P.lastRecv={}
--Network-related
P.userName="_"
P.userID=-1
P.subID=-1
P.ready=false
P.dropDelay,P.lockDelay=0,0
@@ -405,6 +408,9 @@ function PLY.newPlayer(id,mini)
P.type="human"
P.sound=true
P.userID=USER.id
P.subID=-1
loadGameEnv(P)
applyGameEnv(P)
end