修复观战,假设玩家座位号为0做排错处理
parent
bdb6f43110
commit
ed03b29d9b
|
|
@ -71,10 +71,10 @@ function M:InitView(url)
|
|||
local list = _room.player_list
|
||||
for i = 1, #list do
|
||||
local p = list[i]
|
||||
if p.seat then
|
||||
local info = _player_info[self:GetPos(p.seat)]
|
||||
else
|
||||
local info = _player_info[self:GetPos(1)]
|
||||
if not p.seat or p.seat == 0 then
|
||||
p.seat = i
|
||||
info = _player_info[self:GetPos(i)]
|
||||
end
|
||||
|
||||
info._view.visible = true
|
||||
|
|
|
|||
Loading…
Reference in New Issue