Use client game id when kicking players during game.
This commit is contained in:
@@ -47,7 +47,7 @@ void Chat::sendMessage() {
|
||||
QString playerToKick = myW->lineEdit_ChatInput->text().section(" ",1,1);
|
||||
|
||||
myW->lineEdit_ChatInput->setText("");
|
||||
if(myW->getSession().getClientGameInfo(myW->getSession().getCurrentGame()->getMyGameID()).adminPlayerId == myW->getSession().getCurrentGame()->getSeatsList()->front()->getMyUniqueID()) {
|
||||
if(myW->getSession().getClientGameInfo(myW->getSession().getClientCurrentGameId()).adminPlayerId == myW->getSession().getCurrentGame()->getSeatsList()->front()->getMyUniqueID()) {
|
||||
|
||||
if(playerToKick.toUtf8().constData() == myW->getSession().getCurrentGame()->getSeatsList()->front()->getMyName()) {
|
||||
myW->textBrowser_Chat->append("<span style=\"color:#ff0000;\">"+tr("You cannot kick yourself!")+"</span>");
|
||||
|
||||
@@ -3547,7 +3547,7 @@ void mainWindowImpl::networkGameModification() {
|
||||
|
||||
void mainWindowImpl::mouseOverFlipCards(bool front) {
|
||||
|
||||
if(mySession->getCurrentGameID()) {
|
||||
if(mySession->getCurrentGame()) {
|
||||
if(myConfig->readConfigInt("AntiPeekMode") && mySession->getCurrentGame()->getCurrentHand()->getSeatsList()->front()->getMyActiveStatus() && mySession->getCurrentGame()->getSeatsList()->front()->getMyAction() != PLAYER_ACTION_FOLD) {
|
||||
holeCardsArray[0][0]->signalFastFlipCards(front);
|
||||
holeCardsArray[0][1]->signalFastFlipCards(front);
|
||||
|
||||
Reference in New Issue
Block a user