- rename lastPlayersTurn -> previousPlayerID and lastActionPlayer -> lastActionPlayerID
This commit is contained in:
1 parent
c867a789d3
commit
f1dc2e90a5
15 files changed
+119
-116
No files matched your search
@@ -154,12 +154,12 @@ static void PerformPlayerAction(ServerGame &server, boost::shared_ptr<PlayerInte
|
||||
switch(action) {
|
||||
case PLAYER_ACTION_BET: {
|
||||
curGame.getCurrentHand()->getCurrentBeRo()->setMinimumRaise(bet);
|
||||
curGame.getCurrentHand()->setLastActionPlayer(player->getMyUniqueID());
|
||||
curGame.getCurrentHand()->setLastActionPlayerID(player->getMyUniqueID());
|
||||
}
|
||||
break;
|
||||
case PLAYER_ACTION_RAISE: {
|
||||
curGame.getCurrentHand()->getCurrentBeRo()->setMinimumRaise(player->getMySet() - curGame.getCurrentHand()->getCurrentBeRo()->getHighestSet());
|
||||
curGame.getCurrentHand()->setLastActionPlayer(player->getMyUniqueID());
|
||||
curGame.getCurrentHand()->setLastActionPlayerID(player->getMyUniqueID());
|
||||
}
|
||||
break;
|
||||
case PLAYER_ACTION_ALLIN: {
|
||||
@@ -167,7 +167,7 @@ static void PerformPlayerAction(ServerGame &server, boost::shared_ptr<PlayerInte
|
||||
curGame.getCurrentHand()->getCurrentBeRo()->setMinimumRaise(player->getMySet() - curGame.getCurrentHand()->getCurrentBeRo()->getHighestSet());
|
||||
}
|
||||
if(player->getMySet() - curGame.getCurrentHand()->getCurrentBeRo()->getHighestSet() > 0) {
|
||||
curGame.getCurrentHand()->setLastActionPlayer(player->getMyUniqueID());
|
||||
curGame.getCurrentHand()->setLastActionPlayerID(player->getMyUniqueID());
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user