修复单人申请解散房间后新结算页面导致的错误
parent
b45fae5a2a
commit
645e9a576b
|
|
@ -71,7 +71,7 @@ function M:InitData(over, room, result, total_result, callback)
|
|||
_gamectr:PlayerReady()
|
||||
self:DestroyWithCallback()
|
||||
end)
|
||||
else
|
||||
elseif over == 1 then
|
||||
showBtnTypeCtr.selectedIndex = 1
|
||||
self:fillResult1(room, peopleNum, total_result)
|
||||
if result then
|
||||
|
|
@ -82,6 +82,14 @@ function M:InitData(over, room, result, total_result, callback)
|
|||
else
|
||||
_overCtr.selectedIndex = 1
|
||||
end
|
||||
else --解散房间如果没有开局直接退出不显示结算界面,over=2
|
||||
if room.curren_round > 0 then
|
||||
_overCtr.selectedIndex = 1
|
||||
showBtnTypeCtr.selectedIndex = 1
|
||||
self:fillResult1(room, peopleNum, total_result)
|
||||
else
|
||||
ViewManager.ChangeView(ViewManager.View_Family)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue