修复稳定
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user