delete some bug for determining the list of player who have to show their cards. additionally the lastActionPlayer is now determined correctly (especially in every betting roud)
This commit is contained in:
1 parent
53247a007a
commit
7f3e3f6dfd
11 files changed
+63
-32
No files matched your search
@@ -3067,9 +3067,10 @@ void LocalPlayer::evaluation(int bet, int raise) {
|
||||
myCash = myCash - bet;
|
||||
mySet = bet;
|
||||
highestSet = mySet;
|
||||
|
||||
}
|
||||
// lastPlayerAction für Karten umblättern reihenfolge setzrn
|
||||
currentHand->getCurrentBeRo()->setLastActionPlayer(myUniqueID);
|
||||
currentHand->setLastActionPlayer(myUniqueID);
|
||||
}
|
||||
break;
|
||||
// raise
|
||||
@@ -3097,6 +3098,9 @@ void LocalPlayer::evaluation(int bet, int raise) {
|
||||
// -> full bet rule
|
||||
if(highestSet + currentHand->getCurrentBeRo()->getMinimumRaise() > myCash + mySet) {
|
||||
currentHand->getCurrentBeRo()->setFullBetRule(true);
|
||||
} else {
|
||||
// lastPlayerAction für Karten umblättern reihenfolge setzrn
|
||||
currentHand->setLastActionPlayer(myUniqueID);
|
||||
}
|
||||
mySet += myCash;
|
||||
currentHand->getCurrentBeRo()->setMinimumRaise(mySet-highestSet);
|
||||
@@ -3110,10 +3114,10 @@ void LocalPlayer::evaluation(int bet, int raise) {
|
||||
myCash = myCash + mySet - highestSet - raise;
|
||||
mySet = highestSet + raise;
|
||||
highestSet = mySet;
|
||||
// lastPlayerAction für Karten umblättern reihenfolge setzrn
|
||||
currentHand->setLastActionPlayer(myUniqueID);
|
||||
}
|
||||
}
|
||||
// lastPlayerAction für Karten umblättern reihenfolge setzrn
|
||||
currentHand->getCurrentBeRo()->setLastActionPlayer(myUniqueID);
|
||||
}
|
||||
break;
|
||||
// all in
|
||||
@@ -3126,6 +3130,8 @@ void LocalPlayer::evaluation(int bet, int raise) {
|
||||
|
||||
currentHand->getCurrentBeRo()->setHighestSet(highestSet);
|
||||
|
||||
// cout << "lAP: " << currentHand->getLastActionPlayer() << endl;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user