收到重复id玩家进入房间的时候会先触发把老的退掉防止出现复制人引起一堆问题
This commit is contained in:
@@ -650,6 +650,7 @@ function NET.wsCallBack.room_enter(body)
|
||||
end
|
||||
else
|
||||
local p=body.data
|
||||
if NETPLY.map[p.playerId] then _playerLeaveRoom(p.playerId) end
|
||||
NETPLY.add{
|
||||
uid=p.playerId,
|
||||
group=p.group,
|
||||
|
||||
Reference in New Issue
Block a user