收到重复id玩家进入房间的时候会先触发把老的退掉防止出现复制人引起一堆问题

This commit is contained in:
MrZ_26
2022-11-03 23:55:04 +08:00
parent b5fbf9cade
commit c462c28640

View File

@@ -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,