修复稳定
This commit is contained in:
@@ -717,6 +717,7 @@ void DZ_GamePlayer::upPlayerState()
|
||||
// setReadyVisible(true);
|
||||
//}
|
||||
setReadyVisible(true);
|
||||
setOfflineVisible(false);
|
||||
break;
|
||||
}
|
||||
case US_PLAYING:
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user