修复单人申请解散房间后新结算页面导致的错误

master
罗家炜 2025-04-17 13:16:16 +08:00
parent b45fae5a2a
commit 645e9a576b
1 changed files with 9 additions and 1 deletions

View File

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