修复稳定
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;
|
||||
}
|
||||
|
||||
@@ -492,6 +492,7 @@ void DDZPlayer::upPlayerState()
|
||||
case US_READY:
|
||||
{
|
||||
setReadyVisible(true);
|
||||
setOfflineVisible(false);
|
||||
break;
|
||||
}
|
||||
case US_PLAYING:
|
||||
|
||||
Reference in New Issue
Block a user