修复稳定

This commit is contained in:
2026-03-02 17:32:23 +08:00
parent 49fe75efff
commit bfa7d324ee
469 changed files with 728 additions and 602 deletions

View File

@@ -1584,6 +1584,8 @@ void SSSGameScene::onSubBankerCompareCard(const void * pBuffer, uint16 wDataSize
//发牌结束;
void SSSGameScene::sendSendCardOverMsg()
{
// Only send if still in send card state, avoid race condition with server
if (_cbGameStatus != SSS_GS_WK_SEND_CARD) return;
SendSocketData(SSS_SUB_C_SEND_OVER);
}

View File

@@ -580,7 +580,12 @@ bool DDZGameScene::onGameSceneFree(void* pData, int nDataSize)
m_pTxtBaseScore->setString(utility::toString(pStatusFree->lCellScore));
m_pBtnReady->setVisible(true);
// Check if user already ready, don't show ready button if already prepared
GamePlayer* pSelfPlayer = getSelfGamePlayer();
if (pSelfPlayer == nullptr || pSelfPlayer->GetUserStatus() < US_READY)
{
m_pBtnReady->setVisible(true);
}
return true;
}

View File

@@ -492,6 +492,7 @@ void DDZPlayer::upPlayerState()
case US_READY:
{
setReadyVisible(true);
setOfflineVisible(false);
break;
}
case US_PLAYING:

View File

@@ -717,6 +717,7 @@ void DZ_GamePlayer::upPlayerState()
// setReadyVisible(true);
//}
setReadyVisible(true);
setOfflineVisible(false);
break;
}
case US_PLAYING:

View File

@@ -825,7 +825,12 @@ bool DZGameScene::onGameSceneFree(void* pData, int nDataSize)
m_nCellScore = pStatusFree->lCellScore;
m_pBtnReady->setVisible(true);
// Check if user already ready, don't show ready button if already prepared
GamePlayer* pSelfPlayer = getSelfGamePlayer();
if (pSelfPlayer == nullptr || pSelfPlayer->GetUserStatus() < US_READY)
{
m_pBtnReady->setVisible(true);
}
return true;
}

View File

@@ -1754,6 +1754,8 @@ void NNGameScene::showLordUser(bool isplayEffect/* = false*/)
// 发牌结束消息;
void NNGameScene::sendSendCardOverMsg()
{
// Only send if still in send card state, avoid race condition with server
if (m_cbGameStatus != NN_GS_TK_SEND_CARD) return;
SendSocketData(NN_SUB_C_SEND_OVER);
}

View File

@@ -543,6 +543,7 @@ void PDKPlayer::upPlayerState()
case US_READY:
{
setReadyVisible(true);
setOfflineVisible(false);
break;
}
case US_PLAYING:

View File

@@ -1040,6 +1040,8 @@ void ZJHGameScene::onSubCompareCard(const void * pBuffer, uint16 wDataSize)
//发牌结束;
void ZJHGameScene::sendSendCardOverMsg()
{
// Only send if still in send card state, avoid race condition with server
if (m_cbGameStatus != ZJH_GS_SEND_CARD) return;
SendSocketData(ZJH_SUB_C_SEND_OVER);
}