修复单机模式没有sid导致部分情况读取sid报错(会用本地uid直接代替)
This commit is contained in:
@@ -408,7 +408,7 @@ function PLY.newRemotePlayer(id,mini,p)
|
|||||||
P:startStreaming()
|
P:startStreaming()
|
||||||
|
|
||||||
P.uid=p.uid
|
P.uid=p.uid
|
||||||
P.sid=NET.uid_sid[p.uid]
|
P.sid=NET.uid_sid[p.uid] or p.uid
|
||||||
P.group=p.group
|
P.group=p.group
|
||||||
P.netAtk=0
|
P.netAtk=0
|
||||||
if not (P.group%1==0 and P.group>=1 and P.group<=6) then P.group=0 end
|
if not (P.group%1==0 and P.group>=1 and P.group<=6) then P.group=0 end
|
||||||
@@ -425,7 +425,7 @@ function PLY.newAIPlayer(id,AIdata,mini,p)
|
|||||||
group=0,
|
group=0,
|
||||||
} if p then TABLE.coverR(p,pData) end
|
} if p then TABLE.coverR(p,pData) end
|
||||||
P.username='BOT'..pData.uid
|
P.username='BOT'..pData.uid
|
||||||
P.sid=NET.uid_sid[pData.uid]
|
P.sid=NET.uid_sid[pData.uid] or pData.uid
|
||||||
P.group=pData.group
|
P.group=pData.group
|
||||||
if not (P.group%1==0 and P.group>=1 and P.group<=6) then P.group=0 end
|
if not (P.group%1==0 and P.group>=1 and P.group<=6) then P.group=0 end
|
||||||
|
|
||||||
@@ -446,7 +446,7 @@ function PLY.newPlayer(id,mini,p)
|
|||||||
group=0,
|
group=0,
|
||||||
} if p then TABLE.coverR(p,pData) end
|
} if p then TABLE.coverR(p,pData) end
|
||||||
P.uid=pData.uid
|
P.uid=pData.uid
|
||||||
P.sid=NET.uid_sid[pData.uid]
|
P.sid=NET.uid_sid[pData.uid] or pData.uid
|
||||||
P.group=pData.group
|
P.group=pData.group
|
||||||
if not (P.group%1==0 and P.group>=1 and P.group<=6) then P.group=0 end
|
if not (P.group%1==0 and P.group>=1 and P.group<=6) then P.group=0 end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user